diff --git a/examples/multi-runner/main.tf b/examples/multi-runner/main.tf index acbcdb8081..13df82a0bb 100644 --- a/examples/multi-runner/main.tf +++ b/examples/multi-runner/main.tf @@ -28,7 +28,7 @@ locals { aws_region = var.aws_region # create map only with amazon linux 2023 x64 and arm64 to overwrite the default - al2023_arm64_name = "/examples/multi-runner/aws-github-runners/ami/amazon-linux-2023-arm64" + al2023_arm64_name = "/${local.environment}/examples/multi-runner/aws-github-runners/ami/amazon-linux-2023-arm64" ssm_ami_arns = { "linux-x64" = data.aws_ssm_parameter.al2023_x64.arn # construct the arn to avoid terraform count errors diff --git a/modules/runners/policies/lambda-scale-up.json b/modules/runners/policies/lambda-scale-up.json index 1c6946b945..3b16e710d5 100644 --- a/modules/runners/policies/lambda-scale-up.json +++ b/modules/runners/policies/lambda-scale-up.json @@ -35,7 +35,8 @@ "Resource": [ "${github_app_key_base64_arn}", "${github_app_id_arn}", - "${ssm_config_path}/*" + "${ssm_config_path}/*", + "${ssm_ami_id_parameter_arn}" ] }, {