-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deleted aws_customer_gateway is still updated #7136
Comments
Hey @clstokes Here is what I have found:
the issue here is that the gateway_id changes - when we pass in the create again to AWS, it creates a NEW gateway, rather than updating the old one Is this acceptable behaviour for you? Paul |
Hey @stack72, I think this is exactly what we need - essentially treating the deleted gateway as if AWS returned a 404 that it no longer existed. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform still performs updates to a deleted AWS customer gateway (CGW). Like terminated EC2 instances, deleted CGWS linger around for a time after they've been deleted with a state of
deleted
. While indeleted
state, Terraform will continue to apply changes to the CQW.Terraform Version
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Terraform should recognize that the CGW has been deleted and re-create it if still present in my configuration.
Actual Behavior
Terraform applies changes to the deleted CGW.
Steps to Reproduce
terraform apply
aws ec2 describe-customer-gateways --customer-gateway-id $(terraform output cgw_id)
aws ec2 delete-customer-gateway --customer-gateway-id $(terraform output cgw_id)
aws ec2 describe-customer-gateways --customer-gateway-id $(terraform output cgw_id)
deleted
status in previous step.terraform apply
The text was updated successfully, but these errors were encountered: