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"
}
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
vcs_type(String) The vcs provider type is one ofgithub,github_enterprise,gitlab,gitlab_enterprise,bitbucket_enterprise. 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.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.url(String) This field is required for self-hosted vcs providers.username(String) This field is required forbitbucket_enterpriseprovider type.
Read-Only
id(String) The ID of this resource.
Import
Import is supported using the following syntax:
terraform import scalr_vcs_provider.example vcs-xxxxxxxxxx
Updated 5 days ago
