Skip to content

Commit c6079e0

Browse files
authored
Merge branch 'main' into main
2 parents 951c104 + bb7346b commit c6079e0

File tree

16 files changed

+302
-477
lines changed

16 files changed

+302
-477
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## [6.0.1](https://github.com/philips-labs/terraform-aws-github-runner/compare/v6.0.0...v6.0.1) (2025-01-02)
4+
5+
6+
### Bug Fixes
7+
8+
* **lambda:** bump the aws group in /lambdas with 6 updates ([#4323](https://github.com/philips-labs/terraform-aws-github-runner/issues/4323)) ([fbac69a](https://github.com/philips-labs/terraform-aws-github-runner/commit/fbac69af8bd95bcd0796d787d7b75b5354a39478))
9+
* **lambda:** bump the aws-powertools group in /lambdas with 4 updates ([#4324](https://github.com/philips-labs/terraform-aws-github-runner/issues/4324)) ([68cba47](https://github.com/philips-labs/terraform-aws-github-runner/commit/68cba476bbc3660b619e162d66ac84dedcd0b754))
10+
311
## [6.0.0](https://github.com/philips-labs/terraform-aws-github-runner/compare/v5.21.0...v6.0.0) (2024-12-20)
412

513

images/linux-al2023/github_agent.linux.pkr.hcl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ variable "instance_type" {
4242
default = "m3.medium"
4343
}
4444

45+
variable "iam_instance_profile" {
46+
description = "IAM instance profile Packer will use for the builder. An empty string (default) means no profile will be assigned."
47+
type = string
48+
default = ""
49+
}
50+
4551
variable "root_volume_size_gb" {
4652
type = number
4753
default = 8
@@ -98,6 +104,7 @@ locals {
98104
source "amazon-ebs" "githubrunner" {
99105
ami_name = "github-runner-al2023-x86_64-${formatdate("YYYYMMDDhhmm", timestamp())}"
100106
instance_type = var.instance_type
107+
iam_instance_profile = var.iam_instance_profile
101108
region = var.region
102109
security_group_id = var.security_group_id
103110
subnet_id = var.subnet_id

images/ubuntu-focal/github_agent.ubuntu.pkr.hcl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ variable "instance_type" {
4242
default = "t3.medium"
4343
}
4444

45+
variable "iam_instance_profile" {
46+
description = "IAM instance profile Packer will use for the builder. An empty string (default) means no profile will be assigned."
47+
type = string
48+
default = ""
49+
}
50+
4551
variable "root_volume_size_gb" {
4652
type = number
4753
default = 8
@@ -98,6 +104,7 @@ locals {
98104
source "amazon-ebs" "githubrunner" {
99105
ami_name = "github-runner-ubuntu-focal-amd64-${formatdate("YYYYMMDDhhmm", timestamp())}"
100106
instance_type = var.instance_type
107+
iam_instance_profile = var.iam_instance_profile
101108
region = var.region
102109
security_group_id = var.security_group_id
103110
subnet_id = var.subnet_id
@@ -200,6 +207,7 @@ build {
200207
"sudo chmod +x /var/lib/cloud/scripts/per-boot/start-runner.sh",
201208
]
202209
}
210+
203211
post-processor "manifest" {
204212
output = "manifest.json"
205213
strip_path = true

images/ubuntu-jammy-arm64/github_agent.ubuntu.pkr.hcl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ variable "instance_type" {
4242
default = "t4g.small"
4343
}
4444

45+
variable "iam_instance_profile" {
46+
description = "IAM instance profile Packer will use for the builder. An empty string (default) means no profile will be assigned."
47+
type = string
48+
default = ""
49+
}
50+
4551
variable "root_volume_size_gb" {
4652
type = number
4753
default = 8
@@ -98,6 +104,7 @@ locals {
98104
source "amazon-ebs" "githubrunner" {
99105
ami_name = "github-runner-ubuntu-jammy-arm64-${formatdate("YYYYMMDDhhmm", timestamp())}"
100106
instance_type = var.instance_type
107+
iam_instance_profile = var.iam_instance_profile
101108
region = var.region
102109
security_group_id = var.security_group_id
103110
subnet_id = var.subnet_id
@@ -200,6 +207,7 @@ build {
200207
"sudo chmod +x /var/lib/cloud/scripts/per-boot/start-runner.sh",
201208
]
202209
}
210+
203211
post-processor "manifest" {
204212
output = "manifest.json"
205213
strip_path = true

images/ubuntu-jammy/github_agent.ubuntu.pkr.hcl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ variable "instance_type" {
4242
default = "t3.medium"
4343
}
4444

45+
variable "iam_instance_profile" {
46+
description = "IAM instance profile Packer will use for the builder. An empty string (default) means no profile will be assigned."
47+
type = string
48+
default = ""
49+
}
50+
4551
variable "root_volume_size_gb" {
4652
type = number
4753
default = 8
@@ -98,6 +104,7 @@ locals {
98104
source "amazon-ebs" "githubrunner" {
99105
ami_name = "github-runner-ubuntu-jammy-amd64-${formatdate("YYYYMMDDhhmm", timestamp())}"
100106
instance_type = var.instance_type
107+
iam_instance_profile = var.iam_instance_profile
101108
region = var.region
102109
security_group_id = var.security_group_id
103110
subnet_id = var.subnet_id
@@ -200,6 +207,7 @@ build {
200207
"sudo chmod +x /var/lib/cloud/scripts/per-boot/start-runner.sh",
201208
]
202209
}
210+
203211
post-processor "manifest" {
204212
output = "manifest.json"
205213
strip_path = true

images/windows-core-2019/github_agent.windows.pkr.hcl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ variable "instance_type" {
2424
default = "t3a.medium"
2525
}
2626

27+
variable "iam_instance_profile" {
28+
description = "IAM instance profile Packer will use for the builder. An empty string (default) means no profile will be assigned."
29+
type = string
30+
default = ""
31+
}
32+
2733
variable "ebs_delete_on_termination" {
2834
description = "Indicates whether the EBS volume is deleted on instance termination."
2935
type = bool
@@ -64,6 +70,7 @@ source "amazon-ebs" "githubrunner" {
6470
ami_name = "github-runner-windows-core-2019-${formatdate("YYYYMMDDhhmm", timestamp())}"
6571
communicator = "winrm"
6672
instance_type = var.instance_type
73+
iam_instance_profile = var.iam_instance_profile
6774
region = var.region
6875
associate_public_ip_address = var.associate_public_ip_address
6976
temporary_security_group_source_public_ip = var.temporary_security_group_source_public_ip
@@ -114,6 +121,7 @@ build {
114121
})
115122
], var.custom_shell_commands)
116123
}
124+
117125
post-processor "manifest" {
118126
output = "manifest.json"
119127
strip_path = true

images/windows-core-2022/github_agent.windows.pkr.hcl

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@ variable "region" {
1818
default = "eu-west-1"
1919
}
2020

21+
variable "instance_type" {
22+
description = "The instance type Packer will use for the builder"
23+
type = string
24+
default = "m4.xlarge"
25+
}
26+
27+
variable "iam_instance_profile" {
28+
description = "IAM instance profile Packer will use for the builder. An empty string (default) means no profile will be assigned."
29+
type = string
30+
default = ""
31+
}
32+
2133
variable "security_group_id" {
2234
description = "The ID of the security group Packer will associate with the builder to enable access"
2335
type = string
@@ -74,7 +86,8 @@ locals {
7486
source "amazon-ebs" "githubrunner" {
7587
ami_name = "github-runner-windows-core-2022-${formatdate("YYYYMMDDhhmm", timestamp())}"
7688
communicator = "winrm"
77-
instance_type = "m4.xlarge"
89+
instance_type = var.instance_type
90+
iam_instance_profile = var.iam_instance_profile
7891
region = var.region
7992
security_group_id = var.security_group_id
8093
subnet_id = var.subnet_id

lambdas/functions/ami-housekeeper/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/aws-lambda": "^8.10.146",
2121
"@types/jest": "^29.5.14",
2222
"@types/node": "^22.10.2",
23-
"@typescript-eslint/eslint-plugin": "^8.18.1",
23+
"@typescript-eslint/eslint-plugin": "^8.19.1",
2424
"@typescript-eslint/parser": "^8.16.0",
2525
"@vercel/ncc": "^0.38.3",
2626
"aws-sdk-client-mock": "^4.1.0",
@@ -31,16 +31,16 @@
3131
"jest-mock": "^29.7.0",
3232
"jest-mock-extended": "^3.0.7",
3333
"nock": "^13.5.6",
34-
"prettier": "3.3.3",
34+
"prettier": "3.4.2",
3535
"ts-jest": "^29.2.5",
3636
"ts-node": "^10.9.2",
3737
"ts-node-dev": "^2.0.0"
3838
},
3939
"dependencies": {
4040
"@aws-github-runner/aws-powertools-util": "*",
4141
"@aws-github-runner/aws-ssm-util": "*",
42-
"@aws-sdk/client-ec2": "^3.716.0",
43-
"@aws-sdk/client-ssm": "^3.716.0",
42+
"@aws-sdk/client-ec2": "^3.721.0",
43+
"@aws-sdk/client-ssm": "^3.721.0",
4444
"@aws-sdk/types": "^3.714.0",
4545
"cron-parser": "^4.9.0",
4646
"typescript": "^5.7.2"

lambdas/functions/control-plane/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@types/aws-lambda": "^8.10.146",
2121
"@types/jest": "^29.5.14",
2222
"@types/node": "^22.10.2",
23-
"@typescript-eslint/eslint-plugin": "^8.18.1",
23+
"@typescript-eslint/eslint-plugin": "^8.19.1",
2424
"@typescript-eslint/parser": "^8.16.0",
2525
"@vercel/ncc": "^0.38.3",
2626
"aws-sdk-client-mock": "^4.1.0",
@@ -32,7 +32,7 @@
3232
"jest-mock-extended": "^3.0.7",
3333
"moment-timezone": "^0.5.46",
3434
"nock": "^13.5.6",
35-
"prettier": "3.3.3",
35+
"prettier": "3.4.2",
3636
"ts-jest": "^29.2.5",
3737
"ts-node": "^10.9.2",
3838
"ts-node-dev": "^2.0.0"
@@ -41,8 +41,8 @@
4141
"@aws-github-runner/aws-powertools-util": "*",
4242
"@aws-github-runner/aws-ssm-util": "*",
4343
"@aws-lambda-powertools/parameters": "^2.12.0",
44-
"@aws-sdk/client-ec2": "^3.716.0",
45-
"@aws-sdk/client-sqs": "^3.716.0",
44+
"@aws-sdk/client-ec2": "^3.721.0",
45+
"@aws-sdk/client-sqs": "^3.721.0",
4646
"@aws-sdk/types": "^3.714.0",
4747
"@middy/core": "^4.7.0",
4848
"@octokit/auth-app": "6.1.3",

lambdas/functions/gh-agent-syncer/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@types/jest": "^29.5.14",
2222
"@types/node": "^22.10.2",
2323
"@types/request": "^2.48.12",
24-
"@typescript-eslint/eslint-plugin": "^8.18.1",
24+
"@typescript-eslint/eslint-plugin": "^8.19.1",
2525
"@typescript-eslint/parser": "^8.16.0",
2626
"@vercel/ncc": "^0.38.3",
2727
"aws-sdk-client-mock": "^4.1.0",
@@ -30,15 +30,15 @@
3030
"eslint-plugin-prettier": "5.2.1",
3131
"jest": "^29.7.0",
3232
"jest-mock": "^29.7.0",
33-
"prettier": "3.3.3",
33+
"prettier": "3.4.2",
3434
"ts-jest": "^29.2.5",
3535
"ts-node-dev": "^2.0.0",
3636
"typescript": "^5.7.2"
3737
},
3838
"dependencies": {
3939
"@aws-github-runner/aws-powertools-util": "*",
40-
"@aws-sdk/client-s3": "^3.717.0",
41-
"@aws-sdk/lib-storage": "^3.717.0",
40+
"@aws-sdk/client-s3": "^3.722.0",
41+
"@aws-sdk/lib-storage": "^3.722.0",
4242
"@aws-sdk/types": "^3.714.0",
4343
"@middy/core": "^4.7.0",
4444
"@octokit/rest": "20.1.1",

0 commit comments

Comments
 (0)