Skip to content

Commit

Permalink
Redirect output of other commands
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielThomas committed Oct 30, 2016
1 parent 2e512dc commit 45f03e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/ec2gaming-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ if ! aws iam get-instance-profile --instance-profile-name ec2gaming &> /dev/null
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
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"
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
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 45f03e1

Please sign in to comment.