Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 2.06 KB

serviceendpoint_dockerhub.html.markdown

File metadata and controls

53 lines (39 loc) · 2.06 KB
layout page_title description
azuredevops
AzureDevops: azuredevops_serviceendpoint_dockerhub
Manages a Docker Hub service endpoint within Azure DevOps organization.

azuredevops_serviceendpoint_dockerhub

Manages a Docker Hub service endpoint within Azure DevOps.

Example Usage

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
}

Argument Reference

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 to AZDO_DOCKERHUB_SERVICE_CONNECTION_USERNAME environment variable, if present.
  • docker_email - (Required) The email for Docker Hub account. Defaults to AZDO_DOCKERHUB_SERVICE_CONNECTION_EMAIL environment variable, if present.
  • docker_password - (Required) The password for Docker Hub account. Defaults to AZDO_DOCKERHUB_SERVICE_CONNECTION_PASSWORD environment variable, if present.

Attributes Reference

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.

Relevant Links