Skip to content

r/aws_elasticache[user|user_group|replication_group]: deprecate non-exact engine values #42419

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
merged 2 commits into from
Apr 30, 2025

Conversation

jar-b
Copy link
Member

@jar-b jar-b commented Apr 29, 2025

Description

This change deprecates the ability to provide values to the engine argument which do not match the casing returned by the AWS API. In v7.0.0 these resources will require exact value matches during plan time validation.

Relations

Closes #40813
Relates #41101

References

Output from Acceptance Testing

% make testacc PKG=elasticache TESTS=TestAccElastiCacheUser_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.24.2 test ./internal/service/elasticache/... -v -count 1 -parallel 20 -run='TestAccElastiCacheUser_'  -timeout 360m -vet=off
2025/04/29 15:02:18 Initializing Terraform AWS Provider...

--- PASS: TestAccElastiCacheUser_updateEngine (33.57s)
--- PASS: TestAccElastiCacheUser_basic (35.65s)
--- PASS: TestAccElastiCacheUser_passwordAuthMode (38.07s)
--- PASS: TestAccElastiCacheUser_iamAuthMode (40.25s)
--- PASS: TestAccElastiCacheUser_tags (97.48s)
--- PASS: TestAccElastiCacheUser_update (97.78s)
--- PASS: TestAccElastiCacheUser_oobModify (163.52s)
--- PASS: TestAccElastiCacheUser_updatePasswordAuthMode (165.17s)
--- PASS: TestAccElastiCacheUser_disappears (216.02s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/elasticache        221.589s
% make testacc PKG=elasticache TESTS=TestAccElastiCacheUserGroup_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.24.2 test ./internal/service/elasticache/... -v -count 1 -parallel 20 -run='TestAccElastiCacheUserGroup_'  -timeout 360m -vet=off
2025/04/29 15:09:40 Initializing Terraform AWS Provider...

--- PASS: TestAccElastiCacheUserGroup_tags (149.80s)
--- PASS: TestAccElastiCacheUserGroup_disappears (151.02s)
--- PASS: TestAccElastiCacheUserGroup_basic (153.59s)
--- PASS: TestAccElastiCacheUserGroup_update (335.61s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/elasticache        341.074s
% make testacc PKG=elasticache TESTS=TestAccElastiCacheReplicationGroup_Redis_basic
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.24.2 test ./internal/service/elasticache/... -v -count 1 -parallel 20 -run='TestAccElastiCacheReplicationGroup_Redis_basic'  -timeout 360m -vet=off
2025/04/29 15:19:53 Initializing Terraform AWS Provider...

--- PASS: TestAccElastiCacheReplicationGroup_Redis_basic_v5 (785.84s)
--- PASS: TestAccElastiCacheReplicationGroup_Redis_basic (786.38s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/elasticache        792.039s

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.

Copy link

⚠️ We've detected the following potential issues with your pull request

Changelog Entry Required

The proposed change requires a changelog entry. Please see the Changelog Process section of the contributing guide for information on the changelog generation process.

@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/elasticache Issues and PRs that pertain to the elasticache service. verify Pertains to the verify package (i.e., provider-level validating, diff suppression, etc.) size/M Managed by automation to categorize the size of a PR. prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. labels Apr 29, 2025
@jar-b jar-b force-pushed the td-elasticache-engine-uppercase branch 4 times, most recently from 2f5232e to f2f9bf5 Compare April 29, 2025 19:58
jar-b added 2 commits April 29, 2025 16:33
This validator returns a warning diagnostic if the argument value matches a valid value using unicode case-folding, but is not an exact match. It can be used to provide deprecation warnings in cases where non-exact enum value matching is deprecated and planned for removal in future versions.
…xact `engine` values

This change deprecates the ability to provide values to the `engine` argument which do not match the casing returned by the AWS API. In `v7.0.0` these resources will require exact value matches during plan time validation.

```console
% make testacc PKG=elasticache TESTS=TestAccElastiCacheUser_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.24.2 test ./internal/service/elasticache/... -v -count 1 -parallel 20 -run='TestAccElastiCacheUser_'  -timeout 360m -vet=off
2025/04/29 15:02:18 Initializing Terraform AWS Provider...

--- PASS: TestAccElastiCacheUser_updateEngine (33.57s)
--- PASS: TestAccElastiCacheUser_basic (35.65s)
--- PASS: TestAccElastiCacheUser_passwordAuthMode (38.07s)
--- PASS: TestAccElastiCacheUser_iamAuthMode (40.25s)
--- PASS: TestAccElastiCacheUser_tags (97.48s)
--- PASS: TestAccElastiCacheUser_update (97.78s)
--- PASS: TestAccElastiCacheUser_oobModify (163.52s)
--- PASS: TestAccElastiCacheUser_updatePasswordAuthMode (165.17s)
--- PASS: TestAccElastiCacheUser_disappears (216.02s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/elasticache        221.589s
```

```console
% make testacc PKG=elasticache TESTS=TestAccElastiCacheUserGroup_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.24.2 test ./internal/service/elasticache/... -v -count 1 -parallel 20 -run='TestAccElastiCacheUserGroup_'  -timeout 360m -vet=off
2025/04/29 15:09:40 Initializing Terraform AWS Provider...

--- PASS: TestAccElastiCacheUserGroup_tags (149.80s)
--- PASS: TestAccElastiCacheUserGroup_disappears (151.02s)
--- PASS: TestAccElastiCacheUserGroup_basic (153.59s)
--- PASS: TestAccElastiCacheUserGroup_update (335.61s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/elasticache        341.074s
```

```console
% make testacc PKG=elasticache TESTS=TestAccElastiCacheReplicationGroup_Redis_basic
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.24.2 test ./internal/service/elasticache/... -v -count 1 -parallel 20 -run='TestAccElastiCacheReplicationGroup_Redis_basic'  -timeout 360m -vet=off
2025/04/29 15:19:53 Initializing Terraform AWS Provider...

--- PASS: TestAccElastiCacheReplicationGroup_Redis_basic_v5 (785.84s)
--- PASS: TestAccElastiCacheReplicationGroup_Redis_basic (786.38s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/elasticache        792.039s
```
@jar-b jar-b force-pushed the td-elasticache-engine-uppercase branch from f2f9bf5 to aaf4c9a Compare April 29, 2025 20:33
@jar-b jar-b marked this pull request as ready for review April 29, 2025 21:02
@jar-b jar-b requested a review from a team as a code owner April 29, 2025 21:02
Copy link
Member

@YakDriver YakDriver left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

@jar-b jar-b merged commit b84a14a into release/6.0.0-beta Apr 30, 2025
40 checks passed
@jar-b jar-b deleted the td-elasticache-engine-uppercase branch April 30, 2025 13:14
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.

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. prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. service/elasticache Issues and PRs that pertain to the elasticache service. size/M Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. verify Pertains to the verify package (i.e., provider-level validating, diff suppression, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants