Skip to content

Commit 5cec57c

Browse files
committed
- upgrade terraform versions
- replaced philips vpc module by aws-terraform-vpc module - dropped support for terrform pre 1.x from examples
1 parent 02e49e0 commit 5cec57c

File tree

15 files changed

+208
-107
lines changed

15 files changed

+208
-107
lines changed

.github/workflows/terraform.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ on:
99
- "modules/*/lambdas/**"
1010

1111
env:
12-
tf_version: "1.0."
13-
tf_working_dir: "."
1412
AWS_REGION: eu-west-1
1513
jobs:
1614
verify_module:
1715
name: Verify module
1816
strategy:
1917
matrix:
20-
terraform: [1.0.8]
18+
terraform: [1.1.3, 'latest']
2119
runs-on: ubuntu-latest
2220
container:
2321
image: hashicorp/terraform:${{ matrix.terraform }}
@@ -31,7 +29,8 @@ jobs:
3129
touch modules/runner-binaries-syncer/lambdas/runner-binaries-syncer/runner-binaries-syncer.zip
3230
- name: terraform init
3331
run: terraform init -get -backend=false -input=false
34-
- name: check terraform formatting
32+
- if: contains(matrix.terraform, '1.1.')
33+
name: check terraform formatting
3534
run: terraform fmt -recursive -check=true -write=false
3635
continue-on-error: true
3736
- name: validate terraform
@@ -42,7 +41,7 @@ jobs:
4241
strategy:
4342
fail-fast: false
4443
matrix:
45-
terraform: [0.14.3, 0.15.5, 1.0.8]
44+
terraform: [1.0.11, 1.1.3, 'latest']
4645
example: ["default", "ubuntu", "prebuilt"]
4746
defaults:
4847
run:
@@ -54,7 +53,7 @@ jobs:
5453
- uses: actions/checkout@v2
5554
- name: terraform init
5655
run: terraform init -get -backend=false -input=false
57-
- if: contains(matrix.terraform, '1.0.')
56+
- if: contains(matrix.terraform, '1.1.')
5857
name: check terraform formatting
5958
run: terraform fmt -recursive -check=true -write=false
6059
continue-on-error: true

examples/default/.terraform.lock.hcl

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/default/versions.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
aws = {
44
source = "hashicorp/aws"
5-
version = ">= 3.27"
5+
version = ">= 3.71"
66
}
77
local = {
88
source = "hashicorp/local"
@@ -11,5 +11,5 @@ terraform {
1111
source = "hashicorp/random"
1212
}
1313
}
14-
required_version = ">= 0.14"
14+
required_version = ">= 1"
1515
}

examples/default/vpc.tf

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
11
module "vpc" {
2-
source = "git::https://github.com/philips-software/terraform-aws-vpc.git?ref=2.2.0"
2+
source = "terraform-aws-modules/vpc/aws"
3+
version = "3.11.2"
4+
5+
name = "vpc-${local.environment}"
6+
cidr = "10.0.0.0/16"
7+
8+
azs = ["${local.aws_region}a", "${local.aws_region}b", "${local.aws_region}c"]
9+
private_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
10+
public_subnets = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"]
11+
12+
enable_dns_hostnames = true
13+
enable_nat_gateway = true
14+
map_public_ip_on_launch = false
15+
single_nat_gateway = true
16+
17+
tags = {
18+
Environment = local.environment
19+
}
320

4-
environment = local.environment
5-
aws_region = local.aws_region
6-
create_private_hosted_zone = false
721
}

examples/ephemeral/.terraform.lock.hcl

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/ephemeral/versions.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
aws = {
44
source = "hashicorp/aws"
5-
version = ">= 3.27"
5+
version = ">= 3.71"
66
}
77
local = {
88
source = "hashicorp/local"
@@ -11,5 +11,5 @@ terraform {
1111
source = "hashicorp/random"
1212
}
1313
}
14-
required_version = ">= 0.14"
14+
required_version = ">= 1"
1515
}

examples/ephemeral/vpc.tf

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
11
module "vpc" {
2-
source = "git::https://github.com/philips-software/terraform-aws-vpc.git?ref=2.2.0"
2+
source = "terraform-aws-modules/vpc/aws"
3+
version = "3.11.2"
4+
5+
name = "vpc-${local.environment}"
6+
cidr = "10.0.0.0/16"
7+
8+
azs = ["${local.aws_region}a", "${local.aws_region}b", "${local.aws_region}c"]
9+
private_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
10+
public_subnets = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"]
11+
12+
enable_dns_hostnames = true
13+
enable_nat_gateway = true
14+
map_public_ip_on_launch = false
15+
single_nat_gateway = true
16+
17+
tags = {
18+
Environment = local.environment
19+
}
320

4-
environment = local.environment
5-
aws_region = local.aws_region
6-
create_private_hosted_zone = false
721
}

examples/permissions-boundary/vpc.tf

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
11
module "vpc" {
2-
source = "git::https://github.com/philips-software/terraform-aws-vpc.git?ref=2.1.0"
2+
source = "terraform-aws-modules/vpc/aws"
3+
version = "3.11.2"
4+
5+
name = "vpc-${local.environment}"
6+
cidr = "10.0.0.0/16"
7+
8+
azs = ["${local.aws_region}a", "${local.aws_region}b", "${local.aws_region}c"]
9+
private_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
10+
public_subnets = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"]
11+
12+
enable_dns_hostnames = true
13+
enable_nat_gateway = true
14+
map_public_ip_on_launch = false
15+
single_nat_gateway = true
16+
17+
tags = {
18+
Environment = local.environment
19+
}
320

4-
environment = local.environment
5-
aws_region = local.aws_region
6-
create_private_hosted_zone = false
721
}

examples/prebuilt/.terraform.lock.hcl

Lines changed: 14 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/prebuilt/versions.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
aws = {
44
source = "hashicorp/aws"
5-
version = ">= 3.27"
5+
version = ">= 3.71"
66
}
77
local = {
88
source = "hashicorp/local"
@@ -11,5 +11,5 @@ terraform {
1111
source = "hashicorp/random"
1212
}
1313
}
14-
required_version = ">= 0.14"
14+
required_version = ">= 1"
1515
}

examples/prebuilt/vpc.tf

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
11
module "vpc" {
2-
source = "git::https://github.com/philips-software/terraform-aws-vpc.git?ref=2.2.0"
2+
source = "terraform-aws-modules/vpc/aws"
3+
version = "3.11.2"
4+
5+
name = "vpc-${local.environment}"
6+
cidr = "10.0.0.0/16"
7+
8+
azs = ["${local.aws_region}a", "${local.aws_region}b", "${local.aws_region}c"]
9+
private_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
10+
public_subnets = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"]
11+
12+
enable_dns_hostnames = true
13+
enable_nat_gateway = true
14+
map_public_ip_on_launch = false
15+
single_nat_gateway = true
16+
17+
tags = {
18+
Environment = local.environment
19+
}
320

4-
environment = local.environment
5-
aws_region = var.aws_region
6-
create_private_hosted_zone = false
721
}

examples/ubuntu/.terraform.lock.hcl

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/ubuntu/vpc.tf

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
11
module "vpc" {
2-
source = "git::https://github.com/philips-software/terraform-aws-vpc.git?ref=2.2.0"
2+
source = "terraform-aws-modules/vpc/aws"
3+
version = "3.11.2"
4+
5+
name = "vpc-${local.environment}"
6+
cidr = "10.0.0.0/16"
7+
8+
azs = ["${local.aws_region}a", "${local.aws_region}b", "${local.aws_region}c"]
9+
private_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
10+
public_subnets = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"]
11+
12+
enable_dns_hostnames = true
13+
enable_nat_gateway = true
14+
map_public_ip_on_launch = false
15+
single_nat_gateway = true
16+
17+
tags = {
18+
Environment = local.environment
19+
}
320

4-
environment = local.environment
5-
aws_region = local.aws_region
6-
create_private_hosted_zone = false
721
}

0 commit comments

Comments
 (0)