-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[Bug]: modification of cache_usage_limits (ecpu_per_second or data_storage maximum) in aws_elasticache_serverless_cache results in InvalidParameterCombination: Serverless Cache modifications only support modifying one field per request. #35897
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
@meetreks please have a look if you have time, thanks in advance. |
The ecpu must be 0 ( for unlimited) or between 1000 and 15000000. |
I see a related issue trigged by @justinretzolk |
I will have a look and fix it if possible. |
Was able to recreate the issue, let me fix it later today.. |
I fixed the issue highlighted for updating data_storage block - https://github.com/meetreks/terraform-provider-aws/pull/new/b-aws_elasticache_serverless_cache |
This functionality has been released in v5.40.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! |
@meetreks I have just tried the fix with v5.40.0, now plan works, but if I modify a limit, it results in module replacement, so it destroyed the cache and recreated it. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Core Version
1.3.7
AWS Provider Version
5.37.0
Affected Resource(s)
Expected Behavior
Modification of cache usage limits should be possible, in aws console modifing both limits of storage and ecpu at the same time works.
In the module no modification is possible.
Actual Behavior
plan:
result:
InvalidParameterCombination: Serverless Cache modifications only support modifying one field per request.
plan:
result:
InvalidParameterCombination: Serverless Cache modifications only support modifying one field per request.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
resource "aws_elasticache_serverless_cache" "example" {
engine = "redis"
name = "example"
cache_usage_limits {
data_storage {
maximum = 1
unit = "GB"
}
ecpu_per_second {
maximum = 1000
}
}
daily_snapshot_time = "09:00"
description = "Test Server"
kms_key_id = aws_kms_key.test.arn
major_engine_version = "7"
snapshot_retention_limit = 1
security_group_ids = [aws_security_group.test.id]
subnet_ids = aws_subnet.test[*].id
}
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: