We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 75ee0e0 + 090a058 commit 3c1ffbcCopy full SHA for 3c1ffbc
1 file changed
azure/components/aws-assume-role.yml
@@ -37,7 +37,9 @@ steps:
37
if [[ "$AWS_ACCOUNT" =~ ^(prod|dev)$ ]]; then
38
echo "account is $AWS_ACCOUNT"
39
account_id="$(aws ssm get-parameter --name /account-ids/$AWS_ACCOUNT --query Parameter.Value --output text)"
40
- aws_role="arn:aws:iam::${account_id}:role/${aws_role}"
+ if [[ "${aws_role}" != arn:aws:iam:* ]]; then
41
+ aws_role="arn:aws:iam::${account_id}:role/${aws_role}"
42
+ fi
43
fi
44
45
if [[ "${aws_role}" != arn:aws:iam:* ]]; then
0 commit comments