Skip to content

Commit

Permalink
Merge pull request #376 from communitiesuk/DT-755-tf-upgrade
Browse files Browse the repository at this point in the history
DT-755 Update terraform and providers
  • Loading branch information
BenRamchandani authored Jan 25, 2024
2 parents dbe48df + 661c33c commit 5da3490
Show file tree
Hide file tree
Showing 8 changed files with 139 additions and 139 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
# Exposes stdout, stderr and exitcode as outputs for any steps that run terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.6.0
terraform_version: 1.7.0

- name: Terraform init
id: init
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
- name: Set up Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.6.0
terraform_version: 1.7.0

- name: Terraform init
id: init
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.6.0
terraform_version: 1.7.0
- name: Check formatting of all Terraform files
run: terraform fmt -check -diff -recursive
tfsec:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/plan-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Set up Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.6.0
terraform_version: 1.7.0
- name: Terraform init
run: terraform init -input=false
working-directory: terraform/test
Expand All @@ -51,7 +51,7 @@ jobs:
- name: Set up Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.6.0
terraform_version: 1.7.0
- name: Terraform init
run: terraform init -input=false
working-directory: terraform/staging
Expand All @@ -76,7 +76,7 @@ jobs:
- name: Set up Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.6.0
terraform_version: 1.7.0
- name: Terraform init
run: terraform init -input=false -backend=false
working-directory: terraform/production
Expand Down
10 changes: 5 additions & 5 deletions terraform/production/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.14.0"
version = "~> 5.33.0"
}
random = {
source = "hashicorp/random"
version = "~> 3.5.1"
version = "~> 3.6.0"
}
archive = {
source = "hashicorp/archive"
version = "~> 2.4.0"
version = "~> 2.4.1"
}
tls = {
source = "hashicorp/tls"
version = "~> 4.0.4"
version = "~> 4.0.5"
}
}

Expand All @@ -28,7 +28,7 @@ terraform {
region = "eu-west-1"
}

required_version = "~> 1.6.0"
required_version = "~> 1.7.0"
}

provider "aws" {
Expand Down
118 changes: 59 additions & 59 deletions terraform/staging/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions terraform/staging/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.14.0"
version = "~> 5.33.0"
}
random = {
source = "hashicorp/random"
version = "~> 3.5.1"
version = "~> 3.6.0"
}
archive = {
source = "hashicorp/archive"
version = "~> 2.4.0"
version = "~> 2.4.1"
}
tls = {
source = "hashicorp/tls"
version = "~> 4.0.4"
version = "~> 4.0.5"
}
}

Expand All @@ -28,7 +28,7 @@ terraform {
region = "eu-west-1"
}

required_version = "~> 1.6.0"
required_version = "~> 1.7.0"
}

provider "aws" {
Expand Down
Loading

0 comments on commit 5da3490

Please sign in to comment.