Skip to content

Commit 900278f

Browse files
npalmclaude
andcommitted
fix: use local.environment instead of var.environment to avoid null in string template
The tflint validation was failing because var.environment can be null, and null values cannot be included in string templates. Changed to use local.environment which has a fallback value. Fixes the tflint error: Invalid template interpolation value. The expression result is null. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent cf3ecdf commit 900278f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/multi-runner/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ locals {
2828
aws_region = var.aws_region
2929

3030
# create map only with amazon linux 2023 x64 and arm64 to overwrite the default
31-
al2023_arm64_name = "/${var.environment}/examples/multi-runner/aws-github-runners/ami/amazon-linux-2023-arm64"
31+
al2023_arm64_name = "/${local.environment}/examples/multi-runner/aws-github-runners/ami/amazon-linux-2023-arm64"
3232
ssm_ami_arns = {
3333
"linux-x64" = data.aws_ssm_parameter.al2023_x64.arn
3434
# construct the arn to avoid terraform count errors

0 commit comments

Comments
 (0)