File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -16,19 +16,21 @@ This module creates a Lambda function that automatically updates an SSM paramete
1616
1717``` hcl
1818module "ami_updater" {
19- source = "./modules/ami-updater"
19+ #source = "./modules/ami-updater"
20+ source = "git::https://github.com/dgokcin/terraform-aws-github-runner.git//modules/ami-updater?ref=ami-updater-lambda"
2021
21- environment = "prod"
22- ssm_parameter_name = "/github-action-runners/latest_ami_id"
22+ prefix = "test-${local.github_runner_prefix}-"
23+ lambda_zip = "./gh-runner-${local.github_runner_version}-assets/ami-updater.zip"
24+ ssm_parameter_name = "/github-action-runners/test-latest_ami_id"
2325
2426 config = {
2527 dry_run = false
2628 ami_filter = {
2729 owners = ["self"]
2830 filters = [
2931 {
30- name = "tag:Environment "
31- values = ["prod "]
32+ name = "name "
33+ values = ["runs-on-v2.2-ubuntu24-full-x64-* "]
3234 },
3335 {
3436 name = "state"
@@ -40,10 +42,10 @@ module "ami_updater" {
4042
4143 # Optional configurations
4244 schedule_expression = "rate(1 day)"
43- state = "ENABLED"
44- lambda_memory_size = 512
45- lambda_timeout = 30
46- log_level = "info"
45+ state = "ENABLED"
46+ lambda_memory_size = 512
47+ lambda_timeout = 30
48+ log_level = "info"
4749
4850 tags = {
4951 Environment = "prod"
You can’t perform that action at this time.
0 commit comments