-
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
Cannot create both read and write autoscaling target for DynamoDB. #2282
Comments
A quick review of the code (I'm not familiar with 'go' but it's fairly easy to read) it seems that within |
@sforcier this should've been fixed in version 1.1.0 of the AWS provider. See: #1808. If its still an issue let us know, I went down the same rabbit hole and 1.1.0+ works fine in our environment. Note: after Terraform 0.10.x the providers have their own versioning. If you need help updating the provider, see: https://www.terraform.io/docs/configuration/providers.html#provider-versions |
Ah... I wasn't aware that the providers update separately now. Thanks for the fast reply. I'll check that out. |
It seems to be working fine with 1.1.0 of the AWS provider. Thanks again. |
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. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
I cannot seem to create both a read and write autoscaling target for my DynamoDB (DDB). This may be something I'm doing, but I've looked at it enough to where I think an issue submission is finally in order.
I have the following tf code...
Which, when applied, results in an error...
Notice that the error says my write policy is having issues with the ReadCapacityUnits. That's pretty weird and not really supported by my tf code. What I'm finding on further inspection is that in my
terraform.tfstate
file after this operation I end up with...Notice that these targets both have the same primary.id value. If I review the plan after the failed apply, then I see something really weird...
Notice that the scalable_dimension is due to be changed. But why was it ever
ReadCapacityUnits
in the first place?My overall goal is to simply have read and write autoscaling, so if there's a workaround or I'm doing something wrong I'd appreciate the feedback. Any assistance is appreciated.
Terraform Version
v0.10.8
Affected Resource(s)
Please list the resources as a list, for example:
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
Embedded inline above.
Panic Output
N/A
Expected Behavior
My DDB ends up with read and write autoscaling targets/policies
Actual Behavior
Only read is configured properly, subsequent apply statements tend to "flip flop" destruction of read/write (which takes more than the default timeout of 5 minutes for some reason).
Steps to Reproduce
terraform apply
with an HCL that has a table and the above targets/policies configured for read/write autoscaling.Important Factoids
My statement above has all necessary factoids, IMO.
References
I could not find any similar references.
The text was updated successfully, but these errors were encountered: