Skip to content

Commit ddad28a

Browse files
dependabot[bot]Ubuntu
authored andcommitted
chore: Bump @octokit/rest from 19.0.3 to 19.0.4 in /modules/runners/lambdas/runners (github-aws-runners#2336)
chore: Bump @octokit/rest in /modules/runners/lambdas/runners Bumps [@octokit/rest](https://github.com/octokit/rest.js) from 19.0.3 to 19.0.4. - [Release notes](https://github.com/octokit/rest.js/releases) - [Commits](octokit/rest.js@v19.0.3...v19.0.4) --- updated-dependencies: - dependency-name: "@octokit/rest" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> current eulith setup
1 parent 75e15a6 commit ddad28a

File tree

12 files changed

+93
-16
lines changed

12 files changed

+93
-16
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# Kristian's Comments
2+
If you need to run this for Eulith's CI:
3+
4+
1. SSH into the dev machine [email protected]
5+
2. cd ~/terraform-aws-github-runner/examples/ubuntu/
6+
3. terraform plan
7+
4. terraform apply
8+
19
# Terraform module for scalable self hosted GitHub action runners <!-- omit in toc -->
210

311
[![awesome-runners](https://img.shields.io/badge/listed%20on-awesome--runners-blue.svg)](https://github.com/jonico/awesome-runners)[![Terraform registry](https://img.shields.io/github/v/release/philips-labs/terraform-aws-github-runner?label=Terraform%20Registry)](https://registry.terraform.io/modules/philips-labs/github-runner/aws/) ![Terraform checks](https://github.com/philips-labs/terraform-aws-github-runner/workflows/Terraform%20root%20module%20checks/badge.svg) ![Lambda Webhook](https://github.com/philips-labs/terraform-aws-github-runner/workflows/Lambda%20Agent%20Webhook/badge.svg) ![Lambda Runners](https://github.com/philips-labs/terraform-aws-github-runner/workflows/Lambda%20Runners/badge.svg) ![Lambda Syncer](https://github.com/philips-labs/terraform-aws-github-runner/workflows/Lambda%20Runner%20Binaries%20Syncer/badge.svg)

examples/default/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ module "runners" {
7272
# Let the module manage the service linked role
7373
# create_service_linked_role_spot = true
7474

75-
instance_types = ["m5.large", "c5.large"]
75+
instance_types = ["t3.2xlarge"]
7676

7777
# override delay of events in seconds
7878
delay_webhook_event = 5

examples/ubuntu/.terraform.lock.hcl

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

examples/ubuntu/lambdas-download/.terraform.lock.hcl

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

examples/ubuntu/lambdas-download/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
locals {
2-
version = "<REPLACE_BY_GITHUB_RELEASE_VERSION>"
2+
version = "v1.8.1"
33
}
44

55
module "lambdas" {

examples/ubuntu/main.tf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
locals {
22
environment = "ubuntu"
3-
aws_region = "eu-west-1"
3+
aws_region = "us-east-1"
44
}
55

66
resource "random_id" "random" {
@@ -26,18 +26,18 @@ module "runners" {
2626

2727
prefix = local.environment
2828
tags = {
29-
Project = "ProjectX"
29+
Project = "EulithRunners"
3030
}
3131

3232
github_app = {
3333
key_base64 = var.github_app_key_base64
3434
id = var.github_app_id
3535
webhook_secret = random_id.random.hex
3636
}
37-
38-
# webhook_lambda_zip = "lambdas-download/webhook.zip"
39-
# runner_binaries_syncer_lambda_zip = "lambdas-download/runner-binaries-syncer.zip"
40-
# runners_lambda_zip = "lambdas-download/runners.zip"
37+
38+
webhook_lambda_zip = "lambdas-download/webhook.zip"
39+
runner_binaries_syncer_lambda_zip = "lambdas-download/runner-binaries-syncer.zip"
40+
runners_lambda_zip = "lambdas-download/runners.zip"
4141

4242
enable_organization_runners = false
4343
runner_extra_labels = "default,example"
@@ -69,7 +69,7 @@ module "runners" {
6969
device_name = "/dev/sda1"
7070
delete_on_termination = true
7171
volume_type = "gp3"
72-
volume_size = 30
72+
volume_size = 150
7373
encrypted = true
7474
iops = null
7575
throughput = null

examples/ubuntu/outputs.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ output "webhook_endpoint" {
99
}
1010

1111
output "webhook_secret" {
12-
sensitive = true
1312
value = random_id.random.hex
1413
}
1514

examples/ubuntu/variables.tf

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11

2-
variable "github_app_key_base64" {}
2+
variable "github_app_key_base64" {
3+
type = string
4+
default = "YOU NEED TO PUT THE BASE64 ENCODED APP KEY HERE"
5+
}
36

4-
variable "github_app_id" {}
7+
variable "github_app_id" {
8+
type = string
9+
default = "227250"
10+
}

modules/download-lambda/.terraform.lock.hcl

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

modules/runners/scale-up.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ resource "aws_lambda_function" "scale_up" {
99
handler = "index.scaleUpHandler"
1010
runtime = var.lambda_runtime
1111
timeout = var.lambda_timeout_scale_up
12-
reserved_concurrent_executions = var.scale_up_reserved_concurrent_executions
12+
reserved_concurrent_executions = -1
1313
memory_size = 512
1414
tags = local.tags
1515
architectures = [var.lambda_architecture]

modules/runners/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ variable "lambda_timeout_scale_down" {
249249
variable "scale_up_reserved_concurrent_executions" {
250250
description = "Amount of reserved concurrent executions for the scale-up lambda function. A value of 0 disables lambda from being triggered and -1 removes any concurrency limitations."
251251
type = number
252-
default = 1
252+
default = 10
253253
}
254254

255255
variable "lambda_timeout_scale_up" {

variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ variable "block_device_mappings" {
292292
kms_key_id = null
293293
snapshot_id = null
294294
throughput = null
295-
volume_size = 30
295+
volume_size = 150
296296
volume_type = "gp3"
297297
}]
298298
}
@@ -480,7 +480,7 @@ variable "instance_type" {
480480
variable "instance_types" {
481481
description = "List of instance types for the action runner. Defaults are based on runner_os (amzn2 for linux and Windows Server Core for win)."
482482
type = list(string)
483-
default = ["m5.large", "c5.large"]
483+
default = ["t3.2xlarge"]
484484
}
485485

486486
variable "repository_white_list" {

0 commit comments

Comments
 (0)