Skip to content

Commit 0149c30

Browse files
Merge pull request #17 from rackspace-infrastructure-automation/update-provider
Update AWS Provider
2 parents b338432 + 9620440 commit 0149c30

File tree

4 files changed

+43
-12
lines changed

4 files changed

+43
-12
lines changed

README.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The input data was `["data1", "data2", "data3"]` and we can see that attributes
4040

4141
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.
4242

43-
__References:__
43+
\_\_References:\_\_
4444

4545
[global secondary index always recreated #3828](https://github.com/terraform-providers/terraform-provider-aws/issues/3828)
4646

@@ -57,16 +57,33 @@ The following module variables were updated to better meet current Rackspace sty
5757

5858
- `table_name` -> `name`
5959

60+
## Requirements
61+
62+
| Name | Version |
63+
|------|---------|
64+
| terraform | >= 0.13 |
65+
| aws | >= 4.0 |
66+
6067
## Providers
6168

6269
| Name | Version |
6370
|------|---------|
64-
| aws | >= 2.7.0 |
71+
| aws | >= 4.0 |
72+
73+
## Modules
74+
75+
No Modules.
76+
77+
## Resources
78+
79+
| Name |
80+
|------|
81+
| [aws_dynamodb_table](https://registry.terraform.io/providers/hashicorp/aws/4.0/docs/resources/dynamodb_table) |
6582

6683
## Inputs
6784

6885
| Name | Description | Type | Default | Required |
69-
|------|-------------|------|---------|:-----:|
86+
|------|-------------|------|---------|:--------:|
7087
| 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 |
7188
| 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 |
7289
| enable\_ttl | Enable time to live on record. | `bool` | `false` | no |
@@ -92,4 +109,3 @@ The following module variables were updated to better meet current Rackspace sty
92109
| stream\_arn | ARN for the stream if `stream_enabled` was set to `true`, otherwise returns a string of "null". |
93110
| table\_arn | Table ARN |
94111
| table\_name | Table Name |
95-

examples/example.tf

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
terraform {
2-
required_version = ">= 0.12"
2+
required_version = ">= 0.13"
3+
4+
required_providers {
5+
aws = {
6+
source = "hashicorp/aws"
7+
version = ">= 4.0"
8+
}
9+
}
310
}
411

512
provider "aws" {
6-
version = "~> 2.7"
7-
region = "us-west-2"
13+
region = "us-west-2"
814
}
915

1016
module "dynamo_table_provisioned" {

main.tf

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,13 @@
6161
*/
6262

6363
terraform {
64-
required_version = ">= 0.12"
64+
required_version = ">= 0.13"
6565

6666
required_providers {
67-
aws = ">= 2.7.0"
67+
aws = {
68+
source = "hashicorp/aws"
69+
version = ">= 4.0"
70+
}
6871
}
6972
}
7073

tests/default/main.tf

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
terraform {
2-
required_version = ">= 0.12"
2+
required_version = ">= 0.13"
3+
4+
required_providers {
5+
aws = {
6+
source = "hashicorp/aws"
7+
version = ">= 4.0"
8+
}
9+
}
310
}
411

512
provider "aws" {
6-
version = "~> 3.0"
7-
region = "us-west-2"
13+
region = "us-west-2"
814
}
915

1016
locals {

0 commit comments

Comments
 (0)