Skip to content

Commit a0257af

Browse files
authored
Merge pull request #1674 from philips-labs/develop
Release
2 parents 3e92904 + db4fc4b commit a0257af

File tree

33 files changed

+1367
-1021
lines changed

33 files changed

+1367
-1021
lines changed

.github/workflows/packer-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
image: hashicorp/packer:1.7.8
2222
strategy:
2323
matrix:
24-
image: ["linux-amzn2", "windows-core-2019"]
24+
image: ["linux-amzn2", "windows-core-2019", "ubuntu-focal"]
2525
defaults:
2626
run:
2727
working-directory: images/${{ matrix.image }}

.github/workflows/terraform.yml

Lines changed: 12 additions & 7 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,11 @@ 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
34+
run: terraform fmt -recursive -check=true -write=false
35+
- if: contains(matrix.terraform, 'latest') # check formatting for the latest release but avoid failing the build
36+
name: check terraform formatting
3537
run: terraform fmt -recursive -check=true -write=false
3638
continue-on-error: true
3739
- name: validate terraform
@@ -42,7 +44,7 @@ jobs:
4244
strategy:
4345
fail-fast: false
4446
matrix:
45-
terraform: [0.14.3, 0.15.5, 1.0.8]
47+
terraform: [1.0.11, 1.1.3, 'latest']
4648
example: ["default", "ubuntu", "prebuilt", "arm64", "ephemeral", "windows"]
4749
defaults:
4850
run:
@@ -54,9 +56,12 @@ jobs:
5456
- uses: actions/checkout@v2
5557
- name: terraform init
5658
run: terraform init -get -backend=false -input=false
57-
- if: contains(matrix.terraform, '1.0.')
59+
- if: contains(matrix.terraform, '1.1.')
60+
name: check terraform formatting
61+
run: terraform fmt -recursive -check=true -write=false
62+
- if: contains(matrix.terraform, 'latest') # check formatting for the latest release but avoid failing the build
5863
name: check terraform formatting
5964
run: terraform fmt -recursive -check=true -write=false
6065
continue-on-error: true
61-
- name: validate terraform
66+
- name: validate terraform011
6267
run: terraform validate

.release/yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2375,9 +2375,9 @@ node-emoji@^1.10.0:
23752375
lodash "^4.17.21"
23762376

23772377
node-fetch@^2.6.1:
2378-
version "2.6.5"
2379-
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.5.tgz#42735537d7f080a7e5f78b6c549b7146be1742fd"
2380-
integrity sha512-mmlIVHJEu5rnIxgEgez6b9GgWXbkZj5YZ7fx+2r94a2E+Uirsp6HsPTPlomfdHtpt/B0cdKviwkoaM6pyvUOpQ==
2378+
version "2.6.7"
2379+
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad"
2380+
integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==
23812381
dependencies:
23822382
whatwg-url "^5.0.0"
23832383

examples/arm64/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module "runners" {
3737

3838
enable_organization_runners = false
3939
# Runners will automatically get the "arm64" label
40-
runner_extra_labels = "default,example"
40+
runner_extra_labels = "default,example"
4141

4242
# enable access to the runners via SSM
4343
enable_ssm_on_runners = 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/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module "runners" {
6666

6767
# configure your pre-built AMI
6868
# enabled_userdata = false
69-
# ami_filter = { name = ["github-runner-amzn2-x86_64-2021*"] }
69+
# ami_filter = { name = ["github-runner-amzn2-x86_64-*"] }
7070
# ami_owners = [data.aws_caller_identity.current.account_id]
7171

7272
# Enable logging

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
}

0 commit comments

Comments
 (0)