Skip to content

Commit

Permalink
Fix configure-aws-credentials when network_name has dashes (#743)
Browse files Browse the repository at this point in the history
The configure-aws-credentials action errors if network_name has dashes
in it e.g. if network_name = "non-prod". This issue was discovered on a project.
  • Loading branch information
lorenyu authored Aug 28, 2024
1 parent 4efd2e6 commit 1844e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/configure-aws-credentials/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ runs:
terraform -chdir="infra/project-config" init > /dev/null
terraform -chdir="infra/project-config" apply -auto-approve > /dev/null
account_name=$(terraform -chdir="infra/project-config" output -json network_configs | jq -r ".${network_name}.account_name")
account_name=$(terraform -chdir="infra/project-config" output -json network_configs | jq -r ".[\"${network_name}\"].account_name")
echo "Account name retrieved: ${account_name}"
echo "account_name=${account_name}" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit 1844e4c

Please sign in to comment.