From 40455c56876496ac0bcfd98808b835e845085d8f Mon Sep 17 00:00:00 2001 From: Deepak Jagannath Date: Sat, 27 Jul 2019 12:40:55 -0700 Subject: [PATCH] Update Makefile. Change bucket name, make cloudformation template create bucket if it does not exist, and add put-config script. --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8a46e52..07ac052 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -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) @@ -7,6 +7,8 @@ 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 \ @@ -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 \ No newline at end of file