From b67c7dcbee7618f830b2365a73a2bc25f20b52b5 Mon Sep 17 00:00:00 2001 From: Kevin Ring Date: Tue, 17 May 2022 09:33:00 +0000 Subject: [PATCH] fix(runner): Don't treat the string "false" as true. (#2051) --- modules/runners/templates/start-runner.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/runners/templates/start-runner.ps1 b/modules/runners/templates/start-runner.ps1 index 851d5a3d22..bdb9f0c851 100644 --- a/modules/runners/templates/start-runner.ps1 +++ b/modules/runners/templates/start-runner.ps1 @@ -30,7 +30,7 @@ Write-Host "Retrieved /$environment/runner/enable-cloudwatch parameter - ($enab $agent_mode=$parameters.where( {$_.Name -eq "/$environment/runner/agent-mode"}).value Write-Host "Retrieved /$environment/runner/agent-mode parameter - ($agent_mode)" -if ($enable_cloudwatch_agent) +if ($enable_cloudwatch_agent -eq "true") { Write-Host "Enabling CloudWatch Agent" & 'C:\Program Files\Amazon\AmazonCloudWatchAgent\amazon-cloudwatch-agent-ctl.ps1' -a fetch-config -m ec2 -s -c "ssm:$environment-cloudwatch_agent_config_runner"