Open De117 opened 1 year ago
Voting for Prioritization
Volunteering to Work on This Issue
I just now had the same exact issue, with identical code, using the 4.40.0 AWS provider version.
For now the only workaround I have found is to manually delete the Route53 record (using the AWS console), and run terraform apply
again.
Terraform Core Version
1.3.1
AWS Provider Version
4.44.0
Affected Resource(s)
aws_cognito_user_pool_domain
Expected Behavior
The Cognito user pool domain, after being marked for destruction, should be cleanly replaced.
Actual Behavior
The old Cognito user pool domain is destroyed, but the new one is not created. Instead, deployment breaks with an error.
Rerunning
terraform apply
many minutes later succeeds.Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
With the configuration file in the working directory:
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
This may be related to issue #5313. This SO question seems to describe this bug. (Failure to recreate a
aws_cognito_user_pool_domain
.)Would you like to implement a fix?
None