Skip to content

Commit

Permalink
fix!: Bump AWS provider
Browse files Browse the repository at this point in the history
  • Loading branch information
baolsen committed Dec 19, 2023
1 parent b3f457d commit d726f8b
Show file tree
Hide file tree
Showing 14 changed files with 43 additions and 42 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/pre-commit-and-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ jobs:
python -m venv .venv
source .venv/bin/activate
pip install pre-commit checkov
- name: Configure ~/.terraformrc
run: |
cat <<-EOF >> ~/.terraformrc
credentials "app.terraform.io" {
token = "${{ secrets.TERRAFORM_CLOUD_TOKEN }}"
}
EOF
- name: pre-commit run
run: |
source .venv/bin/activate
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@ test.auto.tfvars*

# Apple
.DS_Store

# Python
.venv
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ No outputs.

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | ~> 4.9 |
| <a name="provider_aws"></a> [aws](#provider\_aws) | ~> 5.0 |

----
### Requirements

| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.5 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 4.9 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 5.0 |

----
### Resources
Expand Down
18 changes: 8 additions & 10 deletions examples/basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ resource "aws_kms_key" "source" {
}
module "s3_bucket_source" {
# source = "app.terraform.io/cloudandthings/s3-bucket/aws"
# version = "1.2.0"
source = "../../modules/external/s3_bucket"
source = "app.terraform.io/cloudandthings/s3-bucket/aws"
version = "2.0.0"
name = "${local.naming_prefix}-source"
kms_key_id = aws_kms_key.source.arn
Expand All @@ -52,9 +51,8 @@ resource "aws_kms_key" "destination" {
}
module "s3_bucket_destination" {
# source = "app.terraform.io/cloudandthings/s3-bucket/aws"
# version = "1.2.0"
source = "../../modules/external/s3_bucket"
source = "app.terraform.io/cloudandthings/s3-bucket/aws"
version = "2.0.0"
name = "${local.naming_prefix}-dest"
kms_key_id = aws_kms_key.destination.arn
Expand Down Expand Up @@ -125,8 +123,8 @@ module "example" {
| Name | Source | Version |
|------|--------|---------|
| <a name="module_example"></a> [example](#module\_example) | ../../ | n/a |
| <a name="module_s3_bucket_destination"></a> [s3\_bucket\_destination](#module\_s3\_bucket\_destination) | ../../modules/external/s3_bucket | n/a |
| <a name="module_s3_bucket_source"></a> [s3\_bucket\_source](#module\_s3\_bucket\_source) | ../../modules/external/s3_bucket | n/a |
| <a name="module_s3_bucket_destination"></a> [s3\_bucket\_destination](#module\_s3\_bucket\_destination) | app.terraform.io/cloudandthings/s3-bucket/aws | 2.0.0 |
| <a name="module_s3_bucket_source"></a> [s3\_bucket\_source](#module\_s3\_bucket\_source) | app.terraform.io/cloudandthings/s3-bucket/aws | 2.0.0 |

----
### Outputs
Expand All @@ -142,7 +140,7 @@ module "example" {

| Name | Version |
|------|---------|
| <a name="provider_aws.afs1"></a> [aws.afs1](#provider\_aws.afs1) | ~> 4.9 |
| <a name="provider_aws.afs1"></a> [aws.afs1](#provider\_aws.afs1) | ~> 5.0 |
| <a name="provider_random"></a> [random](#provider\_random) | ~> 3.4 |

----
Expand All @@ -151,7 +149,7 @@ module "example" {
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.5 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 4.9 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 5.0 |
| <a name="requirement_random"></a> [random](#requirement\_random) | ~> 3.4 |

----
Expand Down
10 changes: 4 additions & 6 deletions examples/basic/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ resource "aws_kms_key" "source" {
}

module "s3_bucket_source" {
# source = "app.terraform.io/cloudandthings/s3-bucket/aws"
# version = "1.2.0"
source = "../../modules/external/s3_bucket"
source = "app.terraform.io/cloudandthings/s3-bucket/aws"
version = "2.0.0"

name = "${local.naming_prefix}-source"
kms_key_id = aws_kms_key.source.arn
Expand All @@ -48,9 +47,8 @@ resource "aws_kms_key" "destination" {
}

module "s3_bucket_destination" {
# source = "app.terraform.io/cloudandthings/s3-bucket/aws"
# version = "1.2.0"
source = "../../modules/external/s3_bucket"
source = "app.terraform.io/cloudandthings/s3-bucket/aws"
version = "2.0.0"

name = "${local.naming_prefix}-dest"
kms_key_id = aws_kms_key.destination.arn
Expand Down
5 changes: 2 additions & 3 deletions examples/basic/terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ terraform {
required_version = ">= 0.15.5"
required_providers {
aws = {
source = "hashicorp/aws"
# V5+ does not exist yet, may contain breaking changes.
version = "~> 4.9"
source = "hashicorp/aws"
version = "~> 5.0"
}
random = {
source = "hashicorp/random"
Expand Down
6 changes: 3 additions & 3 deletions examples/cross-account/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ module "example" {

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | ~> 4.9 |
| <a name="provider_aws.account_A"></a> [aws.account\_A](#provider\_aws.account\_A) | ~> 4.9 |
| <a name="provider_aws"></a> [aws](#provider\_aws) | ~> 5.0 |
| <a name="provider_aws.account_A"></a> [aws.account\_A](#provider\_aws.account\_A) | ~> 5.0 |
| <a name="provider_random"></a> [random](#provider\_random) | ~> 3.4 |

----
Expand All @@ -143,7 +143,7 @@ module "example" {
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.5 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 4.9 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 5.0 |
| <a name="requirement_random"></a> [random](#requirement\_random) | ~> 3.4 |

----
Expand Down
5 changes: 2 additions & 3 deletions examples/cross-account/terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ terraform {
required_version = ">= 0.15.5"
required_providers {
aws = {
source = "hashicorp/aws"
# V5+ does not exist yet, may contain breaking changes.
version = "~> 4.9"
source = "hashicorp/aws"
version = "~> 5.0"
}
random = {
source = "hashicorp/random"
Expand Down
6 changes: 3 additions & 3 deletions examples/cross-region/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ module "example" {

| Name | Version |
|------|---------|
| <a name="provider_aws.afs1"></a> [aws.afs1](#provider\_aws.afs1) | ~> 4.9 |
| <a name="provider_aws.euw1"></a> [aws.euw1](#provider\_aws.euw1) | ~> 4.9 |
| <a name="provider_aws.afs1"></a> [aws.afs1](#provider\_aws.afs1) | ~> 5.0 |
| <a name="provider_aws.euw1"></a> [aws.euw1](#provider\_aws.euw1) | ~> 5.0 |
| <a name="provider_random"></a> [random](#provider\_random) | ~> 3.4 |

----
Expand All @@ -148,7 +148,7 @@ module "example" {
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.5 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 4.9 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 5.0 |
| <a name="requirement_random"></a> [random](#requirement\_random) | ~> 3.4 |

----
Expand Down
5 changes: 2 additions & 3 deletions examples/cross-region/terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ terraform {
required_version = ">= 0.15.5"
required_providers {
aws = {
source = "hashicorp/aws"
# V5+ does not exist yet, may contain breaking changes.
version = "~> 4.9"
source = "hashicorp/aws"
version = "~> 5.0"
}
random = {
source = "hashicorp/random"
Expand Down
4 changes: 2 additions & 2 deletions examples/multiple-destinations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ module "example" {

| Name | Version |
|------|---------|
| <a name="provider_aws.afs1"></a> [aws.afs1](#provider\_aws.afs1) | ~> 4.9 |
| <a name="provider_aws.afs1"></a> [aws.afs1](#provider\_aws.afs1) | ~> 5.0 |
| <a name="provider_random"></a> [random](#provider\_random) | ~> 3.4 |

----
Expand All @@ -151,7 +151,7 @@ module "example" {
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.5 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 4.9 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 5.0 |
| <a name="requirement_random"></a> [random](#requirement\_random) | ~> 3.4 |

----
Expand Down
5 changes: 2 additions & 3 deletions examples/multiple-destinations/terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ terraform {
required_version = ">= 0.15.5"
required_providers {
aws = {
source = "hashicorp/aws"
# V5+ does not exist yet, may contain breaking changes.
version = "~> 4.9"
source = "hashicorp/aws"
version = "~> 5.0"
}
random = {
source = "hashicorp/random"
Expand Down
5 changes: 2 additions & 3 deletions modules/external/s3_bucket/terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ terraform {

required_providers {
aws = {
source = "hashicorp/aws"
# V5+ does not exist yet, may contain breaking changes.
version = "~> 4.9"
source = "hashicorp/aws"
version = "~> 5.0"
}
null = { # Delete me
source = "hashicorp/null"
Expand Down
2 changes: 1 addition & 1 deletion terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.9"
version = "~> 5.0"
}
}
}

0 comments on commit d726f8b

Please sign in to comment.