scalr_vcs_provider
Resource scalr_vcs_provider
scalr_vcs_provider
Manage the Scalr VCS provider. Create, update and destroy.
Example Usage
Basic usage:
resource "scalr_vcs_provider" "example" {
name="example-github"
account_id = "acc-xxxxx"
vcs_type="github"
token="token"
}
Argument Reference
name
- (Required) Name of the vcs provider.vcs_type
(Required) The vcs provider type is one ofgithub
,github_enterprise
,gitlab
,gitlab_enterprise
,bitbucket_enterprise
.
The other providers are not currently supported in the resource.token
(Required) 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
account_id
- (Optional) ID of the account.url
- (Optional) This field is required for self-hosted vcs providers.username
- (Optional) This field is required forbitbucket_enterprise
provider type.agent_pool_id
- (Optional) ID of the agent pool to communicate with VCS through.environments
- (Optional) The list of environment identifiers that the VCS provider is shared with.
Use["*"]
to share with all environments.
Attribute Reference
All arguments plus:
id
- The ID of the vcs provider.
Import
To import vcs provider use vcs provider ID as the import ID. For example:
terraform import scalr_vcs_provider.example vcs-xxxxxxxxxx
Updated 28 days ago