layout | page_title | description |
---|---|---|
azuredevops |
AzureDevops: azuredevops_serviceendpoint_dockerhub |
Manages a Docker Hub service endpoint within Azure DevOps organization. |
Manages a Docker Hub service endpoint within Azure DevOps.
resource "azuredevops_project" "project" {
project_name = "Sample Project"
visibility = "private"
version_control = "Git"
work_item_template = "Agile"
}
resource "azuredevops_serviceendpoint_dockerhub" "serviceendpoint" {
project_id = azuredevops_project.project.id
service_endpoint_name = "Sample Docker Hub"
docker_username = "sample" # Or set with `AZDO_DOCKERHUB_SERVICE_CONNECTION_USERNAME` env var
docker_email = "[email protected]" # Or set with `AZDO_DOCKERHUB_SERVICE_CONNECTION_EMAIL` env var
docker_password = "12345" # Or set with `AZDO_DOCKERHUB_SERVICE_CONNECTION_PASSWORD` env var
}
The following arguments are supported:
project_id
- (Required) The project ID or project name.service_endpoint_name
- (Required) The Service Endpoint name.description
- (Required) The Service Endpoint description.docker_username
- (Required) The username for Docker Hub account. Defaults toAZDO_DOCKERHUB_SERVICE_CONNECTION_USERNAME
environment variable, if present.docker_email
- (Required) The email for Docker Hub account. Defaults toAZDO_DOCKERHUB_SERVICE_CONNECTION_EMAIL
environment variable, if present.docker_password
- (Required) The password for Docker Hub account. Defaults toAZDO_DOCKERHUB_SERVICE_CONNECTION_PASSWORD
environment variable, if present.
The following attributes are exported:
id
- The ID of the service endpoint.project_id
- The project ID or project name.service_endpoint_name
- The Service Endpoint name.