Skip to content

Commit

Permalink
Add wait
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielThomas committed Oct 30, 2016
1 parent 45f03e1 commit 6ea4156
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/ec2gaming-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ if ! aws iam get-instance-profile --instance-profile-name ec2gaming &> /dev/null
aws iam put-role-policy --role-name "$PROFILE_NAME" --policy-name "$PROFILE_NAME" --policy-document file://ec2gaming-permissionpolicy.json > /dev/null
aws iam create-instance-profile --instance-profile-name "$PROFILE_NAME" > /dev/null
aws iam add-role-to-instance-profile --instance-profile-name "$PROFILE_NAME" --role-name "$PROFILE_NAME" > /dev/null
aws iam wait instance-profile-exists --instance-profile-name ec2gaming
fi
INSTANCE_PROFILE_ARN=$(aws iam get-instance-profile --instance-profile-name ec2gaming | jq -r '.InstanceProfile.Arn')
echo "$INSTANCE_PROFILE_ARN"
Expand Down

0 comments on commit 6ea4156

Please sign in to comment.