Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions bin/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ zip deploy/templates.zip ecs-blue-green-deployment.yaml templates/*
cd scripts && zip scripts.zip * && cd ..
mv scripts/scripts.zip deploy/scripts.zip

aws s3 cp deploy/templates.zip "s3://${bucket}" --acl public-read
aws s3 cp deploy/scripts.zip "s3://${bucket}" --acl public-read
aws s3 cp ecs-blue-green-deployment.yaml "s3://${bucket}" --acl public-read
aws s3 cp --recursive templates/ "s3://${bucket}/templates" --acl public-read
aws s3 cp --recursive scripts/ "s3://${bucket}/scripts" --acl public-read
aws s3 cp deploy/templates.zip "s3://${bucket}"
aws s3 cp deploy/scripts.zip "s3://${bucket}"
aws s3 cp ecs-blue-green-deployment.yaml "s3://${bucket}"
aws s3 cp --recursive templates/ "s3://${bucket}/templates"
aws s3 cp --recursive scripts/ "s3://${bucket}/scripts"
aws s3api put-bucket-versioning --bucket "${bucket}" --versioning-configuration Status=Enabled
aws cloudformation deploy --stack-name $stackname --template-file ecs-blue-green-deployment.yaml --capabilities CAPABILITY_NAMED_IAM --parameter-overrides GitHubUser=$GitHubUser GitHubToken=$GitHubToken TemplateBucket=$bucket
5 changes: 4 additions & 1 deletion templates/deployment-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ Resources:
- ec2:*
- elasticloadbalancing:*
- autoscaling:*

- Resource: !Sub arn:aws:s3:::${TemplateBucket}/*
Effect: Allow
Action:
- s3:GetObject
CodeBuildServiceRole:
Type: AWS::IAM::Role
Properties:
Expand Down