ec_deployment
creation failure results in unmanaged resource
#569
Labels
bug
Something isn't working
ec_deployment
creation failure results in unmanaged resource
#569
Readiness Checklist
Expected Behavior
When creating a deployment with a valid configuration, if a deployment fails during creation, for example, due to lack of capacity or due to incorrect component settings, Terraform should still track the deployment and store at least the deployment ID in the state so the deployment can be cleaned up using Terraform and not have to manually issue an API call or use the UI to terminate the deployment.
Current Behavior
When creating a deployment with a valid configuration, if a deployment fails during creation, for example, due to lack of capacity or due to incorrect component settings, a subsequent
terraform destroy
won't remove the deployment from the ESS account. This results in the deployments "silently" being created, and not managed by terraform.Terraform definition
this example will only work on the CFT Region
Context
Caused a lot of waste in ESS to be created and not cleaned up.
Possible Solution
POST /v1/deployment
, and store the deployment in the state, or at least the deployment ID if the full state can't be stored at that pointWhether 1 is feasible or not is unclear to me, but after the
POST /v1/deployment
call has been issued, the deployment has most likely been created and allocated, at which point, terraform should know about it and keep track of it.Your Environment
The text was updated successfully, but these errors were encountered: