Skip to content

New Resource: aws_cloudfrontkeyvaluestore_keys_exclusive #42246

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

Merged

Conversation

brittandeyoung
Copy link
Collaborator

@brittandeyoung brittandeyoung commented Apr 15, 2025

Description

This PR adds the new aws_cloudfrontkeyvaluestore_keys_exclusive resource which will allow managing all aws_cloudfrontkeyvaluestore_keys in a single resource and optimizing API calls.

Relations

Relates #39376

References

Output from Acceptance Testing

✗  make testacc TESTARGS='-run=TestAccCloudFrontKeyValueStoreKeysExclusive' PKG=cloudfrontkeyvaluestore 
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.7 test ./internal/service/cloudfrontkeyvaluestore/... -v -count 1 -parallel 20  -run=TestAccCloudFrontKeyValueStoreKeysExclusive -timeout 360m -vet=off
2025/04/23 17:10:03 Initializing Terraform AWS Provider...
=== RUN   TestAccCloudFrontKeyValueStoreKeysExclusive_basic
=== PAUSE TestAccCloudFrontKeyValueStoreKeysExclusive_basic
=== RUN   TestAccCloudFrontKeyValueStoreKeysExclusive_disappears_KeyValueStore
=== PAUSE TestAccCloudFrontKeyValueStoreKeysExclusive_disappears_KeyValueStore
=== RUN   TestAccCloudFrontKeyValueStoreKeysExclusive_outOfBandAddition
=== PAUSE TestAccCloudFrontKeyValueStoreKeysExclusive_outOfBandAddition
=== RUN   TestAccCloudFrontKeyValueStoreKeysExclusive_outOfBandRemoval
=== PAUSE TestAccCloudFrontKeyValueStoreKeysExclusive_outOfBandRemoval
=== RUN   TestAccCloudFrontKeyValueStoreKeysExclusive_value
=== PAUSE TestAccCloudFrontKeyValueStoreKeysExclusive_value
=== RUN   TestAccCloudFrontKeyValueStoreKeysExclusive_empty
=== PAUSE TestAccCloudFrontKeyValueStoreKeysExclusive_empty
=== CONT  TestAccCloudFrontKeyValueStoreKeysExclusive_basic
=== CONT  TestAccCloudFrontKeyValueStoreKeysExclusive_outOfBandRemoval
=== CONT  TestAccCloudFrontKeyValueStoreKeysExclusive_outOfBandAddition
=== CONT  TestAccCloudFrontKeyValueStoreKeysExclusive_empty
=== CONT  TestAccCloudFrontKeyValueStoreKeysExclusive_disappears_KeyValueStore
=== CONT  TestAccCloudFrontKeyValueStoreKeysExclusive_value
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_disappears_KeyValueStore (29.38s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_basic (39.05s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_outOfBandAddition (39.42s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_empty (41.36s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_value (44.72s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_outOfBandRemoval (47.04s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/cloudfrontkeyvaluestore    52.649s
...

@brittandeyoung brittandeyoung requested a review from a team as a code owner April 15, 2025 20:41
Copy link

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 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. create Pertains to generating names, hashcodes, etc. generators Relates to code generators. service/cloudfrontkeyvaluestore Issues and PRs that pertain to the cloudfrontkeyvaluestore service. size/XL Managed by automation to categorize the size of a PR. external-maintainer Contribution from a trusted external contributor. labels Apr 15, 2025
@brittandeyoung brittandeyoung added the new-resource Introduces a new resource. label Apr 15, 2025
@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label Apr 16, 2025
jar-b added 3 commits May 13, 2025 09:29
…ssageContains`

```console
% make testacc PKG=cloudfrontkeyvaluestore TESTS=TestAccCloudFrontKeyValueStoreKeysExclusive_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.8 test ./internal/service/cloudfrontkeyvaluestore/... -v -count 1 -parallel 20 -run='TestAccCloudFrontKeyValueStoreKeysExclusive_'  -timeout 360m -vet=off
2025/05/13 09:19:02 Initializing Terraform AWS Provider...

--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_disappears_KeyValueStore (28.04s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_value (35.52s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_basic (36.97s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_empty (37.18s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_outOfBandAddition (44.09s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_outOfBandRemoval (44.10s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/cloudfrontkeyvaluestore    49.935s
```
…pers, tidy up

```console
% make testacc PKG=cloudfrontkeyvaluestore TESTS=TestAccCloudFrontKeyValueStoreKeysExclusive_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.8 test ./internal/service/cloudfrontkeyvaluestore/... -v -count 1 -parallel 20 -run='TestAccCloudFrontKeyValueStoreKeysExclusive_'  -timeout 360m -vet=off
2025/05/13 10:12:57 Initializing Terraform AWS Provider...

--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_disappears_KeyValueStore (28.26s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_value (35.91s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_outOfBandRemoval (36.77s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_empty (37.87s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_basic (41.17s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_outOfBandAddition (43.82s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/cloudfrontkeyvaluestore    49.452s
```
@github-actions github-actions bot added the service/cloudfront Issues and PRs that pertain to the cloudfront service. label May 13, 2025
Copy link
Member

@jar-b jar-b 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 PKG=cloudfrontkeyvaluestore TESTS=TestAccCloudFrontKeyValueStoreKeysExclusive_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.8 test ./internal/service/cloudfrontkeyvaluestore/... -v -count 1 -parallel 20 -run='TestAccCloudFrontKeyValueStoreKeysExclusive_'  -timeout 360m -vet=off
2025/05/13 10:12:57 Initializing Terraform AWS Provider...

--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_disappears_KeyValueStore (28.26s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_value (35.91s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_outOfBandRemoval (36.77s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_empty (37.87s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_basic (41.17s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_outOfBandAddition (43.82s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/cloudfrontkeyvaluestore    49.452s

@jar-b jar-b merged commit fc3fd52 into hashicorp:main May 13, 2025
46 checks passed
Copy link

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.

@github-actions github-actions bot added this to the v5.98.0 milestone May 13, 2025
@jar-b
Copy link
Member

jar-b commented May 13, 2025

Thanks for your contribution, @brittandeyoung! 👍

Copy link

This functionality has been released in v5.98.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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
create Pertains to generating names, hashcodes, etc. documentation Introduces or discusses updates to documentation. external-maintainer Contribution from a trusted external contributor. generators Relates to code generators. new-resource Introduces a new resource. service/cloudfront Issues and PRs that pertain to the cloudfront service. service/cloudfrontkeyvaluestore Issues and PRs that pertain to the cloudfrontkeyvaluestore service. size/XL Managed by automation to categorize the size of a PR. 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.

4 participants