Manages an App Service Source Control Token.
resource "azurerm_source_control_token" "example" {
type = "GitHub"
token = "ghp_sometokenvaluesecretsauce"
}
The following arguments are supported:
type
- (Required) The Token type. Possible values include Bitbucket
, Dropbox
, Github
, and OneDrive
.
token
- (Required) The Access Token.
token_secret
- (Optional) The Access Token Secret.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the App Service Source GitHub Token.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 minutes) Used when creating the App Service Source GitHub Token.read
- (Defaults to 5 minutes) Used when retrieving the App Service Source GitHub Token.update
- (Defaults to 5 minutes) Used when updating the App Service Source GitHub Token.delete
- (Defaults to 5 minutes) Used when deleting the App Service Source GitHub Token.App Service Source GitHub Tokens can be imported using the resource id
, e.g.
terraform import azurerm_source_control_token.example /providers/Microsoft.Web/sourceControls/GitHub