Skip to content

Commit ca2025b

Browse files
committed
Using profile when checking for service role
1 parent 704e644 commit ca2025b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sspa

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ function create_lambda_service() {
241241
create_iam_role lambda_exec "file://conf/iam/policies/lambda_trust.json"
242242
echo -n "Waiting for IAM Role to become available..."
243243
local role_arn=$(support/jsed.py conf/iam/roles/${app_name}_lambda_exec/info.json 'Role.Arn')
244-
while ! aws iam get-role --role-name ${app_name}_lambda_exec &> /dev/null; do
244+
while ! aws --profile $profile iam get-role --role-name ${app_name}_lambda_exec &> /dev/null; do
245245
echo -n .
246246
done
247247
echo "...done!"

0 commit comments

Comments
 (0)