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

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 for bitbucket_enterprise provider 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