Skip to content

Commit 959228c

Browse files
ohmerbryantbiggs
andauthored
feat: Enable support for v5.0 of the AWS provider (#385)
* Loosen version constraint for AWS provider * Update README.md * Update examples * chore: Updates from testing and validating --------- Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
1 parent fa04ae1 commit 959228c

23 files changed

Lines changed: 40 additions & 39 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.77.2
3+
rev: v1.80.0
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_validate

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,13 @@ Terraform documentation is generated automatically using [pre-commit hooks](http
224224
| Name | Version |
225225
|------|---------|
226226
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
227-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 4.67 |
227+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.67 |
228228

229229
## Providers
230230

231231
| Name | Version |
232232
|------|---------|
233-
| <a name="provider_aws"></a> [aws](#provider\_aws) | ~> 4.67 |
233+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.67 |
234234

235235
## Modules
236236

examples/autoscaling/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@ Note that this example may create resources which cost money. Run `terraform des
2020
| Name | Version |
2121
|------|---------|
2222
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
23-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 4.67 |
23+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.67 |
2424

2525
## Providers
2626

2727
| Name | Version |
2828
|------|---------|
29-
| <a name="provider_aws"></a> [aws](#provider\_aws) | ~> 4.67 |
29+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.67 |
3030

3131
## Modules
3232

3333
| Name | Source | Version |
3434
|------|--------|---------|
3535
| <a name="module_aurora"></a> [aurora](#module\_aurora) | ../../ | n/a |
3636
| <a name="module_disabled_aurora"></a> [disabled\_aurora](#module\_disabled\_aurora) | ../../ | n/a |
37-
| <a name="module_vpc"></a> [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 4.0 |
37+
| <a name="module_vpc"></a> [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 5.0 |
3838

3939
## Resources
4040

examples/autoscaling/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ module "disabled_aurora" {
7171

7272
module "vpc" {
7373
source = "terraform-aws-modules/vpc/aws"
74-
version = "~> 4.0"
74+
version = "~> 5.0"
7575

7676
name = local.name
7777
cidr = local.vpc_cidr

examples/autoscaling/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = "~> 4.67"
7+
version = ">= 4.67"
88
}
99
}
1010
}

examples/global-cluster/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ Note that this example may create resources which cost money. Run `terraform des
2020
| Name | Version |
2121
|------|---------|
2222
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
23-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 4.67 |
23+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.67 |
2424
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 2.2 |
2525

2626
## Providers
2727

2828
| Name | Version |
2929
|------|---------|
30-
| <a name="provider_aws"></a> [aws](#provider\_aws) | ~> 4.67 |
31-
| <a name="provider_aws.secondary"></a> [aws.secondary](#provider\_aws.secondary) | ~> 4.67 |
30+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.67 |
31+
| <a name="provider_aws.secondary"></a> [aws.secondary](#provider\_aws.secondary) | >= 4.67 |
3232
| <a name="provider_random"></a> [random](#provider\_random) | >= 2.2 |
3333

3434
## Modules
@@ -37,8 +37,8 @@ Note that this example may create resources which cost money. Run `terraform des
3737
|------|--------|---------|
3838
| <a name="module_aurora_primary"></a> [aurora\_primary](#module\_aurora\_primary) | ../../ | n/a |
3939
| <a name="module_aurora_secondary"></a> [aurora\_secondary](#module\_aurora\_secondary) | ../../ | n/a |
40-
| <a name="module_primary_vpc"></a> [primary\_vpc](#module\_primary\_vpc) | terraform-aws-modules/vpc/aws | ~> 4.0 |
41-
| <a name="module_secondary_vpc"></a> [secondary\_vpc](#module\_secondary\_vpc) | terraform-aws-modules/vpc/aws | ~> 4.0 |
40+
| <a name="module_primary_vpc"></a> [primary\_vpc](#module\_primary\_vpc) | terraform-aws-modules/vpc/aws | ~> 5.0 |
41+
| <a name="module_secondary_vpc"></a> [secondary\_vpc](#module\_secondary\_vpc) | terraform-aws-modules/vpc/aws | ~> 5.0 |
4242

4343
## Resources
4444

examples/global-cluster/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ resource "random_password" "master" {
120120

121121
module "primary_vpc" {
122122
source = "terraform-aws-modules/vpc/aws"
123-
version = "~> 4.0"
123+
version = "~> 5.0"
124124

125125
name = local.name
126126
cidr = local.primary_vpc_cidr
@@ -136,7 +136,7 @@ module "primary_vpc" {
136136

137137
module "secondary_vpc" {
138138
source = "terraform-aws-modules/vpc/aws"
139-
version = "~> 4.0"
139+
version = "~> 5.0"
140140

141141
providers = { aws = aws.secondary }
142142

examples/global-cluster/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = "~> 4.67"
7+
version = ">= 4.67"
88
}
99

1010
random = {

examples/multi-az/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ Note that this example may create resources which cost money. Run `terraform des
2020
| Name | Version |
2121
|------|---------|
2222
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
23-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 4.67 |
23+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.67 |
2424

2525
## Providers
2626

2727
| Name | Version |
2828
|------|---------|
29-
| <a name="provider_aws"></a> [aws](#provider\_aws) | ~> 4.67 |
29+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.67 |
3030

3131
## Modules
3232

3333
| Name | Source | Version |
3434
|------|--------|---------|
3535
| <a name="module_aurora"></a> [aurora](#module\_aurora) | ../../ | n/a |
36-
| <a name="module_vpc"></a> [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 4.0 |
36+
| <a name="module_vpc"></a> [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 5.0 |
3737

3838
## Resources
3939

examples/multi-az/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module "aurora" {
5353

5454
module "vpc" {
5555
source = "terraform-aws-modules/vpc/aws"
56-
version = "~> 4.0"
56+
version = "~> 5.0"
5757

5858
name = local.name
5959
cidr = local.vpc_cidr

0 commit comments

Comments
 (0)