Skip to content

Commit

Permalink
Remove prefix in build and configure artifacts acl (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsanmok authored May 27, 2021
1 parent 61fc76f commit c52892a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ if [ $# -lt 4 ]; then
fi

PREFIX="mlops" # should match the ProjectPrefix parameter in pipeline.yml and studio.yml additional ARN privileges
BUCKET="$PREFIX-$1"
STACK_NAME="$PREFIX-$2"
BUCKET="$1"
STACK_NAME="$2"
REGION=$3
ROLE=$4

Expand All @@ -38,9 +38,9 @@ rm -rf scripts # used in development only
zip -r project.zip .

aws s3 mb "s3://$BUCKET" --region "$REGION"
aws s3 cp --region "$REGION" project.zip "s3://$BUCKET/"
aws s3 cp --region "$REGION" pipeline.yml "s3://$BUCKET/"
aws s3 cp --region "$REGION" studio.yml "s3://$BUCKET/"
aws s3 cp --region "$REGION" project.zip "s3://$BUCKET/" --acl public-read
aws s3 cp --region "$REGION" pipeline.yml "s3://$BUCKET/" --acl public-read
aws s3 cp --region "$REGION" studio.yml "s3://$BUCKET/" --acl public-read

aws cloudformation wait stack-delete-complete --stack-name "$STACK_NAME"

Expand Down

0 comments on commit c52892a

Please sign in to comment.