Skip to content

Commit

Permalink
Fix empty permissionpolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielThomas committed Oct 30, 2016
1 parent 3c82aa8 commit 2e512dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ec2gaming-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ echo -n "Looking for instance profile... "
if ! aws iam get-instance-profile --instance-profile-name ec2gaming &> /dev/null; then
echo -n "not found. Creating... "
aws iam create-role --role-name "$PROFILE_NAME" --assume-role-policy-document file://ec2gaming-trustpolicy.json > /dev/null
sed "s/BUCKET/$BUCKET/g" ec2gaming-permissionpolicy.json.template > ec2gaming-permissionpolicy.json > /dev/null
sed "s/BUCKET/$BUCKET/g" ec2gaming-permissionpolicy.json.template > ec2gaming-permissionpolicy.json
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"
aws iam add-role-to-instance-profile --instance-profile-name "$PROFILE_NAME" --role-name "$PROFILE_NAME"
Expand Down

0 comments on commit 2e512dc

Please sign in to comment.