-
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
Add support for engineValkey in the ValidateFunc #39972
Add support for engineValkey in the ValidateFunc #39972
Conversation
…idateFunc to allow creating clusters with the "valkey" engine test(elasticache/cluster_test.go): add test case for creating an ElastiCache cluster with the "valkey" engine
Community NoteVoting for Prioritization
For Submitters
|
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.
Welcome @schroedermatthias-iu 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
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 🚀
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.
The newly added test is failing with the following error:
% make testacc PKG=elasticache TESTS=TestAccElastiCacheCluster_Engine_valkey
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.2 test ./internal/service/elasticache/... -v -count 1 -parallel 20 -run='TestAccElastiCacheCluster_Engine_valkey' -timeout 360m
2024/11/13 15:16:19 Initializing Terraform AWS Provider...
=== RUN TestAccElastiCacheCluster_Engine_valkey
=== PAUSE TestAccElastiCacheCluster_Engine_valkey
=== CONT TestAccElastiCacheCluster_Engine_valkey
cluster_test.go:130: Step 1/2 error: Error running apply: exit status 1
Error: creating ElastiCache Cache Cluster (tf-acc-test-8500160142762672679): operation error ElastiCache: CreateCacheCluster, https response error StatusCode: 400, RequestID: cec82629-78b9-44db-a2b5-e188baad50fa, InvalidParameterValue: This API doesn't support Valkey engine. Please use CreateReplicationGroup API for Valkey cluster creation.
with aws_elasticache_cluster.test,
on terraform_plugin_test.tf line 12, in resource "aws_elasticache_cluster" "test":
12: resource "aws_elasticache_cluster" "test" {
--- FAIL: TestAccElastiCacheCluster_Engine_valkey (5.87s)
FAIL
FAIL github.com/hashicorp/terraform-provider-aws/internal/service/elasticache 10.926s
We've shared the results with AWS and they are investigating how to proceed.
at this time, the |
@bryantbiggs You're right. BR |
This MR adds
valkey
as option in the validation function for the allowed engines.I also added a testcase with best effort, but unfortunately I cannot really run the test as I have no default subnet in my VPC which would be required by the test.
Relations
Closes #39905
Output from Acceptance Testing