-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
17 lines (17 loc) · 801 Bytes
/
Makefile
File metadata and controls
17 lines (17 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# App Pipeline to building Docker image & deploy to ECR
validate:
aws cloudformation validate-template --template-body file://app-pipeline.yml
create:validate
aws cloudformation create-stack --stack-name pipeline-itizen \
--template-body file://app-pipeline.yml \
--capabilities CAPABILITY_IAM
update:validate
aws cloudformation update-stack \
--stack-name pipeline-itizen \
--template-body file://app-pipeline.yml \
--capabilities CAPABILITY_IAM
delete-artifact:
aws s3 rb --force s3://`aws cloudformation describe-stack-resources --stack-name pipeline-itizen --logical-resource-id ArtifactStoreS3 | grep PhysicalResourceId | cut -d'"' -f 4`
aws ecr delete-repository --force --repository-name app-itizen
delete:delete-artifact
aws cloudformation delete-stack --stack-name pipeline-itizen