layout | page_title | description |
---|---|---|
azuredevops |
AzureDevops: azuredevops_serviceendpoint_octopusdeploy |
Manages an Octopus Deploy service endpoint within Azure DevOps organization. |
Manages an Octopus Deploy service endpoint within Azure DevOps. Using this service endpoint requires you to install Octopus Deploy.
resource "azuredevops_project" "example" {
name = "Example Project"
visibility = "private"
version_control = "Git"
work_item_template = "Agile"
description = "Managed by Terraform"
}
resource "azuredevops_serviceendpoint_octopusdeploy" "example" {
project_id = azuredevops_project.example.id
url = "https://octopus.com"
api_key = "000000000000000000000000000000000000"
service_endpoint_name = "Example Octopus Deploy"
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) Octopus Server url. -
api_key
- (Required) API key to connect to Octopus Deploy.
-
ignore_ssl_error
- (Optional) Whether to ignore SSL errors when connecting to the Octopus server from the agent. Default tofalse
. -
description
- (Optional) The Service Endpoint description. Defaults toManaged by Terraform
.
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.
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 2 minutes) Used when creating the Octopus Deploy Service Endpoint.read
- (Defaults to 1 minute) Used when retrieving the Octopus Deploy Service Endpoint.update
- (Defaults to 2 minutes) Used when updating the Octopus Deploy Service Endpoint.delete
- (Defaults to 2 minutes) Used when deleting the Octopus Deploy Service Endpoint.
Azure DevOps Octopus Deploy Service Endpoint can be imported using projectID/serviceEndpointID or projectName/serviceEndpointID
terraform import azuredevops_serviceendpoint_octopusdeploy.example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000