-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
resource/cloudfront_distribution: conditionally flatten cache behavior forwarded_values #14993
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 🚀 An alternative would be handling the nil
checking in the function itself but this covers the two times it is called.
Output from acceptance testing:
--- PASS: TestAccAWSCloudFrontDistribution_Origin_EmptyDomainName (7.57s)
--- PASS: TestAccAWSCloudFrontDistribution_Origin_EmptyOriginID (8.88s)
--- PASS: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_TrustedSigners (233.65s)
--- PASS: TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_ForwardedValues_Headers (240.33s)
--- PASS: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_ForwardedValues_Cookies_WhitelistedNames (240.63s)
--- PASS: TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_ForwardedValues_Cookies_WhitelistedNames (240.56s)
--- PASS: TestAccAWSCloudFrontDistribution_ViewerCertificate_AcmCertificateArn (269.64s)
--- PASS: TestAccAWSCloudFrontDistribution_ViewerCertificate_AcmCertificateArn_ConflictsWithCloudFrontDefaultCertificate (263.37s)
--- PASS: TestAccAWSCloudFrontDistribution_disappears (272.36s)
--- FAIL: TestAccAWSCloudFrontDistribution_RetainOnDelete (310.11s) # unrelated -- I'll ensure there's a covering issue
--- PASS: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_ForwardedValues_Headers (311.89s)
--- PASS: TestAccAWSCloudFrontDistribution_customOrigin (416.04s)
--- PASS: TestAccAWSCloudFrontDistribution_orderedCacheBehavior (421.37s)
--- PASS: TestAccAWSCloudFrontDistribution_IsIPV6EnabledConfig (423.24s)
--- PASS: TestAccAWSCloudFrontDistribution_S3Origin (459.58s)
--- PASS: TestAccAWSCloudFrontDistribution_noCustomErrorResponseConfig (460.83s)
--- PASS: TestAccAWSCloudFrontDistribution_HTTP11Config (465.44s)
--- PASS: TestAccAWSCloudFrontDistribution_multiOrigin (468.51s)
--- PASS: TestAccAWSCloudFrontDistribution_WaitForDeployment (522.61s)
--- PASS: TestAccAWSCloudFrontDistribution_noOptionalItemsConfig (584.58s)
--- PASS: TestAccAWSCloudFrontDistribution_S3OriginWithTags (615.03s)
--- PASS: TestAccAWSCloudFrontDistribution_Enabled (617.19s)
--- PASS: TestAccAWSCloudFrontDistribution_OriginGroups (389.25s)
This has been released in version 3.5.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 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
Closes #14986
Release note for CHANGELOG:
Notes:
Output from acceptance testing: