terraform-provider-octopusdeploy
terraform-provider-octopusdeploy copied to clipboard
Resource to create user API keys
Is your feature request related to a problem? Please describe. I am trying to use Terraform to deploy and configure Octopus Tentacles. I would like to create a service user for each Tentacle (each representing a Nomad cluster), create an API key and store it Vault and then deploy the Tentacle. At the moment the only manual step in this is the "create an API key" above.
Describe the solution you'd like An "octopusdeploy_user_apikey" resource to create and manage API keys would help close the circle to automate the deployment.
Describe alternatives you've considered Whilst we could in theory expose the tentacle to the Internet and deploy it using octopusdeploy_listening_tentacle_deployment_target I prefer the simplicity of only having outgoing calls rather than having to create an additional entrypoint to my cluster.
Came here to seek this as well. It'd be great to automate the replacement of keys across an array of resources by having individual keys generated by terraform, cross reference resources into the descriptions/names of the keys where relevant, and be able to automate replacing them regularly.
As an intermediate step, I think there's an executable resource where I can pipe in some code, so I might try an API call to octopus mid deployment to collect the key.