-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
After manually deleting an aws_apprunner_custom_domain_association
, recreation fails with unexpected state
#20222
Comments
I had this last night, pulled my hair our for hours on it. I don't think it's a Terraform bug, but more of an AWS bug - if you try to recreate the custom domain link manually in the AWS app runner console, it gives you an empty list of validation records to add. In the end I had to change the subdomain I was using in |
For the record, I am getting this when creating a domain association from scratch. The domain association ends up being created on AWS App Runner, and the certifcates actually do end up verified. The tf state file even shows the validation records marked as |
Any workaround? Does changing the subdomain and changing it back work? I've completely destroyed everything and recreated it, and still hitting this :( |
Hi everyone, |
@johnraz this will make the terraform work, but does the custom domain work? Even when I do it manually in the console the DNS doesn't work. |
@jvisker it does result in a correct terraform state and a functioning custom domain association, yes. |
@johnraz I tried it again and I realized I can get it to work manually, just not with terraform on recreation. Great work. |
This functionality has been released in v3.73.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Relevant part of our App Runner service module:
Debug Output
Expected Behavior
aws_apprunner_custom_domain_association
resource should be created.Actual Behavior
aws_apprunner_custom_domain_association
resource is not created because of unexpected state.Steps to Reproduce
aws_apprunner_custom_domain_association
with Terraform.The text was updated successfully, but these errors were encountered: