-
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
Add support for scaling DynamoDB in Application Scaling Policy #888
Comments
Question
Does HCL not support nested objects as shown in this example? I can't recall an example where I have seen it If this is the case, would the
|
Hi there, any update on this PR? :) |
Any progress on this? Auto scaling would be really nice |
+1 |
+1 |
1 similar comment
👍 |
Imho @stephencoe, I would use a different approach as I submitted here. If we want to keep the |
My short term work around is to use a local provisioner to call the CLI once the table has been created. Below is the code for the workaround:
UPDATE:
|
+1 |
I am confused. If I have a dynamodb table with initially created read/write though put as 10 , later I would like to both read/write capacity as 1000, how can we do this in terraform (without using local provisioner to call the CLI) |
The way we are doing this right now is:
This way, TF won't complain when the read/write capacity changes on AWS because of autoscale, but we can also change the variables and set it up again. Is that more clear now? |
We have autoscaling disabled for dynamodb tables.
Initially we create tables with some read/write throughput through TF and then “we want to use native TF code to update read/write capacity without using aws cli commands in TF”. Any thoughts of using Native TF code to update read/write capacity ??..
Appreciate any responses.
From: Antonio Terreno [mailto:[email protected]]
Sent: Wednesday, November 1, 2017 6:11 AM
To: terraform-providers/terraform-provider-aws <[email protected]>
Cc: Amar Avula <[email protected]>; Comment <[email protected]>
Subject: Re: [terraform-providers/terraform-provider-aws] Add support for scaling DynamoDB in Application Scaling Policy (#888)
The way we are doing this right now is:
resource "aws_dynamodb_table" "table_lab_process" {
name = "lab-${var.environment}-process"
read_capacity = "${var.process_dynamo_rcu_low}"
write_capacity = "${var.process_dynamo_wcu_high}"
hash_key = "gid-brand"
range_key = "ts"
stream_enabled = true
stream_view_type = "NEW_IMAGE"
attribute {
name = "gid-brand"
type = "S"
}
attribute {
name = "ts"
type = "S"
}
lifecycle {
ignore_changes = [
"read_capacity",
"write_capacity",
]
}
}
This way, TF won't complain when the read/write capacity changes on AWS because of autoscale, but we can also change the variables and set it up again. Is that more clear now?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_terraform-2Dproviders_terraform-2Dprovider-2Daws_issues_888-23issuecomment-2D341061696&d=DwMFaQ&c=fa_WZs7nNMvOIDyLmzi2sMVHyyC4hN9WQl29lWJQ5Y4&r=QMr6-i7LEGO_dUFVUBEchbekrJ18EYpzG1HYHwXaqYk&m=pomBqA0eNmvKBq8enOHO1K_9L43dXT-VmWTtlX9l2-w&s=iPuSfJdE1Tsi9sn21EAopZqTrV0Dt3nYV-WBaeeRreE&e=>, or mute the thread<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_Ad3UGwwky0oeF4xS5tnPID0BaM0g8nSfks5syEO3gaJpZM4N8BAs&d=DwMFaQ&c=fa_WZs7nNMvOIDyLmzi2sMVHyyC4hN9WQl29lWJQ5Y4&r=QMr6-i7LEGO_dUFVUBEchbekrJ18EYpzG1HYHwXaqYk&m=pomBqA0eNmvKBq8enOHO1K_9L43dXT-VmWTtlX9l2-w&s=Sgw7x5HlWY-H98ABXN-yWwrgnZbFo8tB4TTWxUMqKZg&e=>.
|
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! |
As of the sdk release 1.8.42 Dynamodb is now supported by application autoscaling.
This is an addition to the appautoscaling_policy to add the
TargetTrackingScalingPolicyConfiguration
SDK Link
http://docs.aws.amazon.com/sdk-for-go/api/service/applicationautoscaling/#PutScalingPolicyInput
The text was updated successfully, but these errors were encountered: