-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
25 lines (21 loc) · 812 Bytes
/
install.sh
File metadata and controls
25 lines (21 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# Set this to a bucket owned by you
export BUCKET_NAME=devdeliforcemumbailambda
export STACK_NAME=deliforcedev
#rm -rf build
#mkdir build
#zip -jr build/health_check.zip functions/health_check/*
#zip -jr build/calculate_weights.zip functions/calculate_weights/*
#zip -jr build/rollback.zip functions/rollback/*
#zip -jr build/update_weight.zip functions/update_weight/*
#zip -jr build/finalize.zip functions/finalize/*
#zip -jr build/simple.zip functions/simple/*
aws cloudformation package \
--template-file template.yml \
--s3-bucket $BUCKET_NAME\
--output-template-file packaged-template.yml
aws cloudformation deploy \
--template-file packaged-template.yml \
--stack-name $STACK_NAME\
--capabilities CAPABILITY_IAM \
--parameter-overrides BucketName=$BUCKET_NAME