Manages a npm service endpoint within Azure DevOps.
resource "azuredevops_project" "example" {
name = "Example Project"
visibility = "private"
version_control = "Git"
work_item_template = "Agile"
description = "Managed by Terraform"
}
resource "azuredevops_serviceendpoint_npm" "example" {
project_id = azuredevops_project.example.id
service_endpoint_name = "Example npm"
url = "https://registry.npmjs.org"
access_token = "00000000-0000-0000-0000-000000000000"
description = "Managed by Terraform"
}
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 npm registry to connect with.access_token
- (Required) The access token for npm registry.description
- (Optional) The Service Endpoint description.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 npm can be imported using the projectID/serviceEndpointID, e.g.
terraform import azuredevops_serviceendpoint_npm.example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000