You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-7
Original file line number
Diff line number
Diff line change
@@ -29,13 +29,7 @@ module "dynamodb_table" {
29
29
30
30
**Warning: enabling or disabling autoscaling can cause your table to be recreated**
31
31
32
-
There are two separate Terraform resources used for the DynamoDB table: one is for when any autoscaling settings are used and the other when not. The following scenarios will make Terraform recreate the table:
33
-
34
-
- Upgrading from an older version of this module with autoscaling settings enabled
35
-
- Enabling autoscaling settings when they were previously disabled
36
-
- Disabling autoscaling settings when they were previously enabled
37
-
38
-
In these scenarios you will need to move the old `aws_dynamodb_table` resource that is being `destroyed` to the new resource that is being `created`. For example:
32
+
There are two separate Terraform resources used for the DynamoDB table: one is for when any autoscaling is enabled the other when disabled. If your table is already created and then you change the variable `autoscaling_enabled` then your table will be recreated by Terraform. In this case you will need to move the old `aws_dynamodb_table` resource that is being `destroyed` to the new resource that is being `created`. For example:
39
33
40
34
```
41
35
terraform state mv module.dynamodb_table.aws_dynamodb_table.this module.dynamodb_table.aws_dynamodb_table.autoscaled
| <aname="input_attributes"></a> [attributes](#input\_attributes)| List of nested attribute definitions. Only required for hash\_key and range\_key attributes. Each attribute has two properties: name - (Required) The name of the attribute, type - (Required) Attribute type, which must be a scalar type: S, N, or B for (S)tring, (N)umber or (B)inary data |`list(map(string))`|`[]`| no |
88
82
| <aname="input_autoscaling_defaults"></a> [autoscaling\_defaults](#input\_autoscaling\_defaults)| A map of default autoscaling settings |`map(string)`| <pre>{<br> "scale_in_cooldown": 0,<br> "scale_out_cooldown": 0,<br> "target_value": 70<br>}</pre> | no |
83
+
| <aname="input_autoscaling_enabled"></a> [autoscaling\_enabled](#input\_autoscaling\_enabled)| Whether or not to enable autoscaling. See note in README about this setting |`bool`|`false`| no |
89
84
| <aname="input_autoscaling_indexes"></a> [autoscaling\_indexes](#input\_autoscaling\_indexes)| A map of index autoscaling configurations. See example in examples/autoscaling |`map(map(string))`|`{}`| no |
90
85
| <aname="input_autoscaling_read"></a> [autoscaling\_read](#input\_autoscaling\_read)| A map of read autoscaling settings. `max_capacity` is the only required key. See example in examples/autoscaling |`map(string)`|`{}`| no |
91
86
| <aname="input_autoscaling_write"></a> [autoscaling\_write](#input\_autoscaling\_write)| A map of write autoscaling settings. `max_capacity` is the only required key. See example in examples/autoscaling |`map(string)`|`{}`| no |
0 commit comments