Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion azure/components/aws-assume-role.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ steps:
if [[ "$AWS_ACCOUNT" =~ ^(prod|dev)$ ]]; then
echo "account is $AWS_ACCOUNT"
account_id="$(aws ssm get-parameter --name /account-ids/$AWS_ACCOUNT --query Parameter.Value --output text)"
aws_role="arn:aws:iam::${account_id}:role/${aws_role}"
if [[ "${aws_role}" != arn:aws:iam:* ]]; then
aws_role="arn:aws:iam::${account_id}:role/${aws_role}"
fi
fi

if [[ "${aws_role}" != arn:aws:iam:* ]]; then
Expand Down