azuredevops_serviceendpoint_gcp_terraform

Manages a GCP service endpoint for Terraform within Azure DevOps. Using this service endpoint requires you to first install the Azure Terraform Extension for Azure DevOps from Microsoft DevLabs.

Example Usage

resource "azuredevops_project" "example" {
  name               = "Example Project"
  visibility         = "private"
  version_control    = "Git"
  work_item_template = "Agile"
  description        = "Managed by Terraform"
}

resource "azuredevops_serviceendpoint_gcp_terraform" "example" {
  project_id            = azuredevops_project.example.id
  token_uri             = "https://oauth2.example.com/token"
  client_email          = "gcp-sa-example@example.iam.gserviceaccount.com"
  private_key           = "0000000000000000000000000000000000000"
  service_endpoint_name = "Example GCP Terraform extension"
  gcp_project_id        = "Example GCP Project"
  description           = "Managed by Terraform"
}

Argument Reference

The following arguments are supported:


Attributes Reference

The following attributes are exported:

Import

Azure DevOps Service Endpoint GCP can be imported using projectID/serviceEndpointID or projectName/serviceEndpointID

terraform import azuredevops_serviceendpoint_gcp_terraform.example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000