Manages a ArgoCD service endpoint within Azure DevOps. Using this service endpoint requires you to first install Argo CD Extension.
resource "azuredevops_project" "example" {
name = "Example Project"
visibility = "private"
version_control = "Git"
work_item_template = "Agile"
}
resource "azuredevops_serviceendpoint_argocd" "example" {
project_id = azuredevops_project.example.id
service_endpoint_name = "Example ArgoCD"
description = "Managed by Terraform"
url = "https://argocd.my.com"
authentication_token {
token = "0000000000000000000000000000000000000000"
}
}
Alternatively a username and password may be used.
resource "azuredevops_project" "example" {
name = "Example Project"
visibility = "private"
version_control = "Git"
work_item_template = "Agile"
description = "Managed by Terraform"
}
resource "azuredevops_serviceendpoint_argocd" "example" {
project_id = azuredevops_project.example.id
service_endpoint_name = "Example ArgoCD"
description = "Managed by Terraform"
url = "https://argocd.my.com"
authentication_basic {
username = "username"
password = "password"
}
}
The following arguments are supported:
project_id
- (Required) The ID of the project.service_endpoint_name
- (Required) The Service Endpoint name.url
- (Required) URL of the ArgoCD server to connect with.description
- (Optional) The Service Endpoint description.authentication_token
- (Optional) An authentication_token
block for the ArgoCD as documented below.authentication_basic
- (Optional) An authentication_basic
block for the ArgoCD as documented below.A authentication_token
block supports the following:
token
- Authentication Token generated through ArgoCD.A authentication_basic
block supports the following:
username
- ArgoCD Username. password
- ArgoCD Password.The following attributes are exported:
id
- The ID of the service endpoint.project_id
- The ID of the project.service_endpoint_name
- The Service Endpoint name.Azure DevOps Service Endpoint ArgoCD can be imported using the projectID/serviceEndpointID, e.g.
terraform import azuredevops_serviceendpoint_argocd.example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000