Skip to content

Commit

Permalink
Update Makefile. Change bucket name, make cloudformation template cre…
Browse files Browse the repository at this point in the history
…ate bucket if it does not exist, and add put-config script.
  • Loading branch information
djagannath-asapp committed Jul 27, 2019
1 parent 91486ce commit 40455c5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
STACKNAME_BASE=pagerduty-oncall-chat-topic
REGION="ca-central-1"
STACKNAME_BASE=asapp-pagerduty-oncall-chat-topic
REGION="us-east-1"
# Bucket in REGION that is used for deployment (`pd-oncall-chat-topic` is already used)
BUCKET=$(STACKNAME_BASE)
SSMKeyArn=$(shell aws kms --region $(REGION) describe-key --key-id alias/aws/ssm --query KeyMetadata.Arn)
MD5=$(shell md5sum lambda/*.py | md5sum | cut -d ' ' -f 1)


deploy:
-aws s3 mb \
s3://$(STACKNAME_BASE)
cd lambda && \
zip -r9 /tmp/deployment.zip *.py && \
aws s3 cp --region $(REGION) /tmp/deployment.zip \
Expand Down Expand Up @@ -34,3 +36,5 @@ put-pd-key:
./scripts/put-ssm.sh $(STACKNAME_BASE) $(STACKNAME_BASE) $(REGION)
put-slack-key:
./scripts/put-ssm.sh $(STACKNAME_BASE)-slack $(STACKNAME_BASE) $(REGION)
put-config:
./scripts/put-config.sh

0 comments on commit 40455c5

Please sign in to comment.