Skip to content

Commit

Permalink
Using profile when checking for service role
Browse files Browse the repository at this point in the history
  • Loading branch information
benrady committed Mar 2, 2016
1 parent 704e644 commit ca2025b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sspa
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ function create_lambda_service() {
create_iam_role lambda_exec "file://conf/iam/policies/lambda_trust.json"
echo -n "Waiting for IAM Role to become available..."
local role_arn=$(support/jsed.py conf/iam/roles/${app_name}_lambda_exec/info.json 'Role.Arn')
while ! aws iam get-role --role-name ${app_name}_lambda_exec &> /dev/null; do
while ! aws --profile $profile iam get-role --role-name ${app_name}_lambda_exec &> /dev/null; do
echo -n .
done
echo "...done!"
Expand Down

0 comments on commit ca2025b

Please sign in to comment.