scalr_vcs_provider
Resource: scalr_vcs_provider
Manage the Scalr VCS provider. Create, update and destroy.
Example Usage
resource "scalr_vcs_provider" "example" {
name = "example-github"
account_id = "acc-xxxxxxxxxx"
vcs_type = "github"
token = "token"
}
resource "scalr_vcs_provider" "azure_dev_ops" {
name = "example-azure-devops"
account_id = "acc-xxxxxxxxxx"
vcs_type = "azure_dev_ops_services"
token = "token"
username = "my-organization" # required only for organization-scoped tokens
}Schema
Required
name(String) Name of the vcs provider.token(String, Sensitive) The personal access token for the provider.- GitHub token can be generated by url https://github.com/settings/tokens/new?description=example-vcs-resouce&scopes=repo
- Gitlab token can be generated by url https://gitlab.com/-/profile/personal_access_tokens?name=example-vcs-resouce&scopes=api,read_user,read_registry
- Azure DevOps token can be generated as described in https://docs.scalr.io/docs/azure-devops#personal-access-token.
vcs_type(String) The vcs provider type is one ofgithub,github_enterprise,gitlab,gitlab_enterprise,bitbucket_enterprise,azure_dev_ops_services. The other providers are not currently supported in the resource.
Optional
account_id(String) ID of the account.agent_pool_id(String) The id of the agent pool to connect Scalr to self-hosted VCS provider.comments_enabled(Boolean) Enable comments on pull requests for the VCS provider.draft_pr_runs_enabled(Boolean) Enable draft PR runs for the VCS provider.environments(Set of String) The list of environment identifiers that the VCS provider is shared to. Use["*"]to share with all environments.pr_merge_comments_enabled(Boolean) Enable comments after pull request merges for the VCS provider.url(String) This field is required for self-hosted vcs providers.username(String) This field is required forbitbucket_enterpriseprovider type. Forazure_dev_ops_servicesit is the Azure DevOps organization name, required only for organization-scoped tokens.
Read-Only
id(String) The ID of this resource.
Import
Import is supported using the following syntax:
terraform import scalr_vcs_provider.example vcs-xxxxxxxxxxUpdated 14 days ago
Did this page help you?
