-
Notifications
You must be signed in to change notification settings - Fork 9.6k
fix: Change etag to read-only for aws_cloudfront_response_headers_policy #38448
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
fix: Change etag to read-only for aws_cloudfront_response_headers_policy #38448
Conversation
Community NoteVoting for Prioritization
For Submitters
|
Thank you for your contribution! 🚀 Please note that typically Go dependency changes are handled in this repository by dependabot or the maintainers. This is to prevent pull request merge conflicts and further delay reviews of contributions. Remove any changes to the Additional details:
|
f25ecd7
to
e6c1766
Compare
Thank you for your contribution! 🚀 Please note that typically Go dependency changes are handled in this repository by dependabot or the maintainers. This is to prevent pull request merge conflicts and further delay reviews of contributions. Remove any changes to the Additional details:
|
This fix makes sense to me given the context from this comment. However, removal of the optional argument technically represents a breaking change. To avoid impacting to existing configurations where |
Also alphabetizes existing entries and adds missing table of contents items.
e6c1766
to
f8ee3c5
Compare
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.
LGTM 🎉
% ake testacc PKG=cloudfront TESTS=TestAccCloudFrontResponseHeadersPolicy_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.24.1 test ./internal/service/cloudfront/... -v -count 1 -parallel 20 -run='TestAccCloudFrontResponseHeadersPolicy_' -timeout 360m -vet=off
2025/04/02 14:24:31 Initializing Terraform AWS Provider...
--- PASS: TestAccCloudFrontResponseHeadersPolicy_disappears (13.12s)
--- PASS: TestAccCloudFrontResponseHeadersPolicy_customHeaders (14.79s)
--- PASS: TestAccCloudFrontResponseHeadersPolicy_RemoveHeadersConfig (15.13s)
--- PASS: TestAccCloudFrontResponseHeadersPolicy_securityHeaders (22.62s)
--- PASS: TestAccCloudFrontResponseHeadersPolicy_cors (22.76s)
--- PASS: TestAccCloudFrontResponseHeadersPolicy_serverTimingHeaders (36.80s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/cloudfront 43.546s
Thanks for your contribution, @acwwat! 👍 |
Warning This Issue has been closed, meaning that any additional comments are much easier for the maintainers to miss. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
This PR is to change the
etag
argument of theaws_cloudfront_response_headers_policy
resource to read-only, since users cannot really set it according to the AWS API reference.Relations
Closes #38244
References
See #38244 (comment) for list of resources referenced during the investigation.
Output from Acceptance Testing