Manages an Artifactory server endpoint within an Azure DevOps organization. Using this service endpoint requires you to first install JFrog Artifactory Extension.
resource "azuredevops_project" "example" {
name = "Example Project"
visibility = "private"
version_control = "Git"
work_item_template = "Agile"
description = "Managed by Terraform"
}
resource "azuredevops_serviceendpoint_artifactory" "example" {
project_id = azuredevops_project.example.id
service_endpoint_name = "Example Artifactory"
description = "Managed by Terraform"
url = "https://artifactory.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_artifactory" "example" {
project_id = azuredevops_project.example.id
service_endpoint_name = "Example Artifactory"
description = "Managed by Terraform"
url = "https://artifactory.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 Artifactory server to connect with.
_Note: URL should not end in a slash character._
authentication_token
or authentication_basic
(one is required)
authentication_token
token
- Authentication Token generated through Artifactory.authentication_basic
username
- Artifactory Username.password
- Artifactory Password.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 Artifactory can be imported using the projectID/serviceEndpointID, e.g.
terraform import azuredevops_serviceendpoint_artifactory.example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000