Skip to content

Conversation

@madhavvishnubhatta
Copy link
Contributor

Rollback Plan

If a change needs to be reverted, we will publish an updated version of the library.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

Description

Added a new resource aws_cloudfront_trust_store

Relations

Partially addresses #45249

References

https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/cloudfront#Client.CreateTrustStore
https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/cloudfront#Client.UpdateTrustStore

Output from Acceptance Testing

make testacc PKG=cloudfront TESTS=TestAccCloudFrontTrustStore                                 
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
make: Running acceptance tests on branch: 🌿 f-aws_cloudfront_trust_store 🌿...
TF_ACC=1 go1.24.11 test ./internal/service/cloudfront/... -v -count 1 -parallel 20 -run='TestAccCloudFrontTrustStore'  -timeout 360m -vet=off
2025/12/10 16:59:29 Creating Terraform AWS Provider (SDKv2-style)...
2025/12/10 16:59:29 Initializing Terraform AWS Provider (SDKv2-style)...
=== RUN   TestAccCloudFrontTrustStore_basic
=== PAUSE TestAccCloudFrontTrustStore_basic
=== RUN   TestAccCloudFrontTrustStore_disappears
=== PAUSE TestAccCloudFrontTrustStore_disappears
=== RUN   TestAccCloudFrontTrustStore_withVersion
=== PAUSE TestAccCloudFrontTrustStore_withVersion
=== RUN   TestAccCloudFrontTrustStore_update
=== PAUSE TestAccCloudFrontTrustStore_update
=== CONT  TestAccCloudFrontTrustStore_basic
=== CONT  TestAccCloudFrontTrustStore_withVersion
=== CONT  TestAccCloudFrontTrustStore_disappears
=== CONT  TestAccCloudFrontTrustStore_update
--- PASS: TestAccCloudFrontTrustStore_disappears (22.29s)
--- PASS: TestAccCloudFrontTrustStore_basic (24.77s)
--- PASS: TestAccCloudFrontTrustStore_withVersion (31.74s)
--- PASS: TestAccCloudFrontTrustStore_update (39.64s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/cloudfront 39.806s
...

@madhavvishnubhatta madhavvishnubhatta requested a review from a team as a code owner December 10, 2025 17:02
@github-actions
Copy link
Contributor

Community Guidelines

This comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀

Voting for Prioritization

  • Please vote on this Pull Request by adding a 👍 reaction to the original post to help the community and maintainers prioritize it.
  • Please see our prioritization guide for additional information on how the maintainers handle prioritization.
  • Please do not leave +1 or other comments that do not add relevant new information or questions; they generate extra noise for others following the Pull Request and do not help prioritize the request.

Pull Request Authors

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 10, 2025

✅ Thank you for correcting the previously detected issues! The maintainers appreciate your efforts to make the review process as smooth as possible.

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/cloudfront Issues and PRs that pertain to the cloudfront service. sweeper Pertains to changes to or issues with the sweeper. generators Relates to code generators. size/XL Managed by automation to categorize the size of a PR. partner Contribution from a partner. labels Dec 10, 2025
@madhavvishnubhatta madhavvishnubhatta marked this pull request as draft December 10, 2025 18:06
@madhavvishnubhatta madhavvishnubhatta marked this pull request as ready for review December 11, 2025 10:49
@ewbankkit ewbankkit added new-resource Introduces a new resource. and removed needs-triage Waiting for first response or review from a maintainer. labels Dec 11, 2025
@ewbankkit ewbankkit self-assigned this Dec 11, 2025
@github-actions github-actions bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Dec 11, 2025
% make testacc TESTARGS='-run=TestAccCloudFrontTrustStore_' PKG=cloudfront ACCTEST_PARALLELISM=2
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
make: Running acceptance tests on branch: 🌿 HEAD 🌿...
TF_ACC=1 go1.24.11 test ./internal/service/cloudfront/... -v -count 1 -parallel 2  -run=TestAccCloudFrontTrustStore_ -timeout 360m -vet=off
2025/12/11 14:39:59 Creating Terraform AWS Provider (SDKv2-style)...
2025/12/11 14:39:59 Initializing Terraform AWS Provider (SDKv2-style)...
=== RUN   TestAccCloudFrontTrustStore_basic
=== PAUSE TestAccCloudFrontTrustStore_basic
=== RUN   TestAccCloudFrontTrustStore_disappears
=== PAUSE TestAccCloudFrontTrustStore_disappears
=== RUN   TestAccCloudFrontTrustStore_withS3ObjectVersion
=== PAUSE TestAccCloudFrontTrustStore_withS3ObjectVersion
=== RUN   TestAccCloudFrontTrustStore_update
=== PAUSE TestAccCloudFrontTrustStore_update
=== CONT  TestAccCloudFrontTrustStore_basic
=== CONT  TestAccCloudFrontTrustStore_withS3ObjectVersion
--- PASS: TestAccCloudFrontTrustStore_basic (21.68s)
=== CONT  TestAccCloudFrontTrustStore_disappears
--- PASS: TestAccCloudFrontTrustStore_withS3ObjectVersion (24.47s)
=== CONT  TestAccCloudFrontTrustStore_update
--- PASS: TestAccCloudFrontTrustStore_disappears (18.03s)
--- PASS: TestAccCloudFrontTrustStore_update (37.12s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/cloudfront	67.423s
ewbankkit
ewbankkit previously approved these changes Dec 11, 2025
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀.

% make testacc TESTARGS='-run=TestAccCloudFrontTrustStore_' PKG=cloudfront ACCTEST_PARALLELISM=2 
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
make: Running acceptance tests on branch: 🌿 HEAD 🌿...
TF_ACC=1 go1.24.11 test ./internal/service/cloudfront/... -v -count 1 -parallel 2  -run=TestAccCloudFrontTrustStore_ -timeout 360m -vet=off
2025/12/11 15:02:09 Creating Terraform AWS Provider (SDKv2-style)...
2025/12/11 15:02:09 Initializing Terraform AWS Provider (SDKv2-style)...
=== RUN   TestAccCloudFrontTrustStore_basic
=== PAUSE TestAccCloudFrontTrustStore_basic
=== RUN   TestAccCloudFrontTrustStore_disappears
=== PAUSE TestAccCloudFrontTrustStore_disappears
=== RUN   TestAccCloudFrontTrustStore_withS3ObjectVersion
=== PAUSE TestAccCloudFrontTrustStore_withS3ObjectVersion
=== RUN   TestAccCloudFrontTrustStore_update
=== PAUSE TestAccCloudFrontTrustStore_update
=== RUN   TestAccCloudFrontTrustStore_tags
=== PAUSE TestAccCloudFrontTrustStore_tags
=== CONT  TestAccCloudFrontTrustStore_basic
=== CONT  TestAccCloudFrontTrustStore_update
--- PASS: TestAccCloudFrontTrustStore_basic (21.85s)
=== CONT  TestAccCloudFrontTrustStore_tags
--- PASS: TestAccCloudFrontTrustStore_update (38.12s)
=== CONT  TestAccCloudFrontTrustStore_withS3ObjectVersion
--- PASS: TestAccCloudFrontTrustStore_withS3ObjectVersion (24.05s)
=== CONT  TestAccCloudFrontTrustStore_disappears
--- PASS: TestAccCloudFrontTrustStore_tags (47.15s)
--- PASS: TestAccCloudFrontTrustStore_disappears (18.78s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/cloudfront	86.263s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Introduces or discusses updates to documentation. generators Relates to code generators. new-resource Introduces a new resource. partner Contribution from a partner. prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. service/cloudfront Issues and PRs that pertain to the cloudfront service. size/XL Managed by automation to categorize the size of a PR. sweeper Pertains to changes to or issues with the sweeper. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants