You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 8, 2022. It is now read-only.
This module uses the aws_api_gateway_domain_name resource which auto-creates a CloudFront distribution. When we destroy a stack that uses this module, the CloudFront distribution is not marked for automatic destruction and terraform destroy fails because other resources (such as the ACM cert) marked for delete depend on the CloudFront resource. This is likely an issue with aws_api_gateway_domain_name resource itself.
For now, this can be worked around by manually disabling and deleting the CloudFront distribution associated with this stack. In addition, the CloudFront distribution alias record must be deleted in Route53. Once those operations are complete, running terraform destroy again should complete successfully.
This module uses the
aws_api_gateway_domain_nameresource which auto-creates a CloudFront distribution. When we destroy a stack that uses this module, the CloudFront distribution is not marked for automatic destruction andterraform destroyfails because other resources (such as the ACM cert) marked for delete depend on the CloudFront resource. This is likely an issue withaws_api_gateway_domain_nameresource itself.For now, this can be worked around by manually disabling and deleting the CloudFront distribution associated with this stack. In addition, the CloudFront distribution alias record must be deleted in Route53. Once those operations are complete, running
terraform destroyagain should complete successfully.See: https://www.terraform.io/docs/providers/aws/r/api_gateway_domain_name.html