Skip to content

Commit

Permalink
fix: Remove extraneous slashes from SSM paths, other typos (#2765)
Browse files Browse the repository at this point in the history
* Remove extraneous slash.

* Remove more extraneous slashes.
  • Loading branch information
kring authored and npalm committed Dec 28, 2022
1 parent ffc9329 commit ed44110
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions modules/runners/templates/start-runner.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@ $environment=$tags.Tags.where( {$_.Key -eq 'ghr:environment'}).value
Write-Host "Reteieved ghr:environment tag - ($environment)"

$ssm_config_path=$tags.Tags.where( {$_.Key -eq 'ghr:ssm_config_path'}).value
Write-Host "Reteieved ghr:ssm_config_path tag - ($ssm_config_path)"
Write-Host "Retrieved ghr:ssm_config_path tag - ($ssm_config_path)"

$parameters=$(aws ssm get-parameters-by-path --path "/$ssm_config_path" --region "$Region" --query "Parameters[*].{Name:Name,Value:Value}") | ConvertFrom-Json
$parameters=$(aws ssm get-parameters-by-path --path "$ssm_config_path" --region "$Region" --query "Parameters[*].{Name:Name,Value:Value}") | ConvertFrom-Json
Write-Host "Retrieved parameters from AWS SSM"

$run_as=$parameters.where( {$_.Name -eq "/$ssm_config_path/run_as"}).value
Write-Host "Retrieved /$ssm_config_path/run_as parameter - ($run_as)"
$run_as=$parameters.where( {$_.Name -eq "$ssm_config_path/run_as"}).value
Write-Host "Retrieved $ssm_config_path/run_as parameter - ($run_as)"

$enable_cloudwatch_agent=$parameters.where( {$_.Name -eq "/$ssm_config_pathr/enable_cloudwatch"}).value
Write-Host "Retrieved /$ssm_config_path/enable_cloudwatch parameter - ($enable_cloudwatch_agent)"
$enable_cloudwatch_agent=$parameters.where( {$_.Name -eq "$ssm_config_path/enable_cloudwatch"}).value
Write-Host "Retrieved $ssm_config_path/enable_cloudwatch parameter - ($enable_cloudwatch_agent)"

$agent_mode=$parameters.where( {$_.Name -eq "/$ssm_config_path/agent_mode"}).value
Write-Host "Retrieved /$ssm_config_path/agent_mode parameter - ($agent_mode)"
$agent_mode=$parameters.where( {$_.Name -eq "$ssm_config_path/agent_mode"}).value
Write-Host "Retrieved $ssm_config_path/agent_mode parameter - ($agent_mode)"

$token_path=$parameters.where( {$_.Name -eq "/$ssm_config_path/token_path"}).value
Write-Host "Retrieved /$ssm_config_path/token_path parameter - ($token_path)"
$token_path=$parameters.where( {$_.Name -eq "$ssm_config_path/token_path"}).value
Write-Host "Retrieved $ssm_config_path/token_path parameter - ($token_path)"


if ($enable_cloudwatch_agent -eq "true")
Expand Down

0 comments on commit ed44110

Please sign in to comment.