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
@@ -40,33 +40,50 @@ The input data was `["data1", "data2", "data3"]` and we can see that attributes
40
40
41
41
The resolution at the moment is to edit the list in your map to match the order in the state file. This should result in a clean plan when no other changes are present.
42
42
43
-
**References:**
43
+
__References:__
44
44
45
45
[global secondary index always recreated #3828](https://github.com/terraform-providers/terraform-provider-aws/issues/3828)
Several changes were required while adding terraform 0.12 compatibility. The following changes should be
52
+
made when upgrading from a previous release to version 0.12.0 or higher.
53
+
54
+
### Module variables
55
+
56
+
The following module variables were updated to better meet current Rackspace style guides:
57
+
58
+
-`table_name` -> `name`
59
+
60
+
## Providers
61
+
62
+
| Name | Version |
63
+
|------|---------|
64
+
| aws | >= 2.1.0 |
65
+
49
66
## Inputs
50
67
51
68
| Name | Description | Type | Default | Required |
52
-
|------|-------------|:----:|:-----:|:-----:|
53
-
| attributes | List of nested attribute definitions. Only required for hash_key's (always) and range_key's (if used) attributes. Attributes have name and type. Type must be a scalar type: S, N, or B for (S)tring, (N)umber or (B)inary data. i.e. [{ name=<hash_key> type=<data_type>}]. Terraform documentation: [A note about attributes](https://www.terraform.io/docs/providers/aws/r/dynamodb_table.html#a-note-about-attributes)| list | n/a | yes |
54
-
| enable\_pay\_per\_request | Controls how you are charged for read and write throughput and how you manage capacity. If True, DynamoDB charges you for the data reads and writes your application performs on your tables. You do not need to specify how much read and write throughput you expect your application to perform because DynamoDB instantly accommodates your workloads as they ramp up or down. [On-Demand Pricing](https://aws.amazon.com/dynamodb/pricing/on-demand/) If False, you specify the number of `read_capacity_units` and `write_capacity_units` per second that you expect your workload to require. [Provisioned Pricing](https://aws.amazon.com/dynamodb/pricing/provisioned/)|string|`"false"`| no |
55
-
| enable\_ttl | Enable time to live on record. |string|`"false"`| no |
56
-
| environment | Application environment for which this resource is being created. Preferred values are Development, Integration, PreProduction, Production, QA, Staging, or Test. | string |`"Development"`| no |
57
-
| global\_secondary\_index\_maps | A list of maps for each [global secondary index (GSI)](https://www.terraform.io/docs/providers/aws/r/dynamodb_table.html#global_secondary_index-1). Please see [examples](./examples) for usage. |list|`<list>`| no |
58
-
| hash\_key |**Forces new resource!** Must contain only alphanumberic characters, dash (-), underscore (_) or dot (.). Needs to be defined by type in attributes. | string | n/a | yes |
59
-
| local\_secondary\_index\_maps | A list of maps for each [local secondary index (LSI)](https://www.terraform.io/docs/providers/aws/r/dynamodb_table.html#local_secondary_index-1). Please see [examples](./examples) for usage. |list|`<list>`| no |
60
-
|point\_in\_time\_recovery|Enable point in time recovery for the table. | string |`"false"`|no|
61
-
|range\_key|**Forces new resource!** RangeType PrimaryKey Name. If used, it will need to be defined by type in attributes | string|`""`| no |
62
-
|read\_capacity\_units|Provisioned read throughput. Should be between 5 and 10000. Ignored if `enable_pay_per_request` is set to `true`. |string |`"5"`| no |
63
-
|stream\_enabled|Enable the stream setting on the table. | string|`"false"`| no |
64
-
| stream\_view\_type|If using `stream_enabled, you can specify a valid DynamoDB StreamViewType; must be one of: `KEYS_ONLY`, `NEW_IMAGE`. `OLD_IMAGE`, `NEW_AND_OLD_IMAGES` |string |`""`| no |
65
-
|table\_encryption\_cmk|You may choose to use an [AWS Managed CMK](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) by setting this to `true`. Otherwise, server side table encryption defaults to an [AWS Owned CMK](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk). |string |`"false"`| no |
66
-
| table\_name|The name of the table, this needs to be unique within a region.|string|n/a|yes|
67
-
| tags | Custom tags to apply to all resources. | map |`<map>`| no |
68
-
| ttl\_attribute | The name of the table attribute to store the TTL timestamp in | string |`""`| no |
69
-
| write\_capacity\_units | Provisioned write throughput. Should be between 5 and 10000. Ignored if `enable_pay_per_request` is set to `true`. |string|`"10"`| no |
69
+
|------|-------------|------|---------|:-----:|
70
+
| attributes | List of nested attribute definitions. Only required for hash\_key's (always) and range\_key's (if used) attributes. Attributes have name and type. Type must be a scalar type: S, N, or B for (S)tring, (N)umber or (B)inary data. i.e. [{ name=<hash\_key> type=<data\_type>}]. Terraform documentation: [A note about attributes](https://www.terraform.io/docs/providers/aws/r/dynamodb_table.html#a-note-about-attributes)|`list(map(string))`| n/a | yes |
71
+
| enable\_pay\_per\_request | Controls how you are charged for read and write throughput and how you manage capacity. If True, DynamoDB charges you for the data reads and writes your application performs on your tables. You do not need to specify how much read and write throughput you expect your application to perform because DynamoDB instantly accommodates your workloads as they ramp up or down. [On-Demand Pricing](https://aws.amazon.com/dynamodb/pricing/on-demand/) If False, you specify the number of `read_capacity_units` and `write_capacity_units` per second that you expect your workload to require. [Provisioned Pricing](https://aws.amazon.com/dynamodb/pricing/provisioned/)|`bool`|`false`| no |
72
+
| enable\_ttl | Enable time to live on record. |`bool`|`false`| no |
73
+
| environment | Application environment for which this resource is being created. Preferred values are Development, Integration, PreProduction, Production, QA, Staging, or Test. |`string`|`"Development"`| no |
74
+
| global\_secondary\_index\_maps | A list of maps for each [global secondary index (GSI)](https://www.terraform.io/docs/providers/aws/r/dynamodb_table.html#global_secondary_index-1). Please see [examples](./examples) for usage. |`any`|`[]`| no |
75
+
| hash\_key |\*\*Forces new resource!\*\* Must contain only alphanumberic characters, dash (-), underscore (\_) or dot (.). Needs to be defined by type in attributes. |`string`| n/a | yes |
76
+
| local\_secondary\_index\_maps | A list of maps for each [local secondary index (LSI)](https://www.terraform.io/docs/providers/aws/r/dynamodb_table.html#local_secondary_index-1). Please see [examples](./examples) for usage. |`any`|`[]`| no |
77
+
|name|The name of the table, this needs to be unique within a region. |`string`|n/a|yes|
78
+
|point\_in\_time\_recovery|Enable point in time recovery for the table. |`bool`|`false`| no |
79
+
|range\_key|\*\*Forces new resource!\*\* RangeType PrimaryKey Name. If used, it will need to be defined by type in attributes |`string`|`""`| no |
80
+
|read\_capacity\_units|Provisioned read throughput. Should be between 5 and 10000. Ignored if `enable_pay_per_request` is set to `true`. |`number`|`5`| no |
81
+
| stream\_enabled|Enable the stream setting on the table. |`bool`|`false`| no |
82
+
|stream\_view\_type|If using `stream_enabled, you can specify a valid DynamoDB StreamViewType; must be one of: `KEYS\_ONLY`, `NEW\_IMAGE`. `OLD\_IMAGE`, `NEW\_AND\_OLD\_IMAGES |`string`|`""`| no |
83
+
| table\_encryption\_cmk|You may choose to use an [AWS Managed CMK](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) by setting this to `true`. Otherwise, server side table encryption defaults to an [AWS Owned CMK](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk).|`bool`|`false`|no|
84
+
| tags | Custom tags to apply to all resources. |`map(string)`|`{}`| no |
85
+
| ttl\_attribute | The name of the table attribute to store the TTL timestamp in |`string`|`""`| no |
86
+
| write\_capacity\_units | Provisioned write throughput. Should be between 5 and 10000. Ignored if `enable_pay_per_request` is set to `true`. |`number`|`10`| no |
* The resolution at the moment is to edit the list in your map to match the order in the state file. This should result in a clean plan when no other changes are present.
43
43
*
44
-
* **References:**
44
+
* __References:__
45
45
*
46
46
* [global secondary index always recreated #3828](https://github.com/terraform-providers/terraform-provider-aws/issues/3828)
0 commit comments