-
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
DistributionAlreadyExists while creating multiple CloudFront distributions #9434
Comments
…e.Now() to resource.UniqueId() Reference: #9434 Output from acceptance testing: ``` ```
…e.Now() to resource.UniqueId() Reference: #9434 Output from acceptance testing: ``` --- PASS: TestAccAWSCloudFrontDistribution_Origin_EmptyOriginID (4.95s) --- PASS: TestAccAWSCloudFrontDistribution_Origin_EmptyDomainName (5.08s) --- PASS: TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_ForwardedValues_Headers (1567.50s) --- PASS: TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_ForwardedValues_Cookies_WhitelistedNames (1569.28s) --- PASS: TestAccAWSCloudFrontDistribution_disappears (1574.60s) --- PASS: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_ForwardedValues_Headers (1575.19s) --- PASS: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_ForwardedValues_Cookies_WhitelistedNames (3398.76s) --- PASS: TestAccAWSCloudFrontDistribution_orderedCacheBehavior (3567.88s) --- PASS: TestAccAWSCloudFrontDistribution_OriginGroups (3562.87s) --- PASS: TestAccAWSCloudFrontDistribution_IsIPV6EnabledConfig (3570.24s) --- PASS: TestAccAWSCloudFrontDistribution_RetainOnDelete (3571.87s) --- PASS: TestAccAWSCloudFrontDistribution_noOptionalItemsConfig (3575.29s) --- PASS: TestAccAWSCloudFrontDistribution_WaitForDeployment (3571.28s) --- PASS: TestAccAWSCloudFrontDistribution_noCustomErrorResponseConfig (3577.28s) --- PASS: TestAccAWSCloudFrontDistribution_ViewerCertificate_AcmCertificateArn_ConflictsWithCloudFrontDefaultCertificate (3581.27s) --- PASS: TestAccAWSCloudFrontDistribution_ViewerCertificate_AcmCertificateArn (3584.68s) --- PASS: TestAccAWSCloudFrontDistribution_customOrigin (4291.01s) --- PASS: TestAccAWSCloudFrontDistribution_HTTP11Config (4294.31s) --- PASS: TestAccAWSCloudFrontDistribution_S3Origin (4368.65s) --- PASS: TestAccAWSCloudFrontDistribution_multiOrigin (4371.62s) --- PASS: TestAccAWSCloudFrontDistribution_Enabled (4464.73s) --- PASS: TestAccAWSCloudFrontDistribution_S3OriginWithTags (4466.44s) ```
Fix submitted: #9470 |
The fix for this has been merged and will release with version 2.21.0 of the Terraform AWS Provider, later this week. 👍 |
This has been released in version 2.21.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, documentation updates, or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform Version
Terraform v0.12.3 + provider.aws v2.16.0
Affected Resource(s)
Terraform Configuration Files
Basic configurations for 2 distributions. Both distributions use the same wildcard SSL certificate, but domains are different:
app1.example.com
andapp2.example.com
Debug Output
Panic Output
Expected Behavior
Multiple distributions are created.
Actual Behavior
Randomly, quite often, this error is displayed and
terraform apply
must be run again to create the second distribution:Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: