Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 820 Bytes

README.md

File metadata and controls

44 lines (32 loc) · 820 Bytes

Local dev

npm run dev

Should spin up a server on port 3000, making a request to http://localhost:3000/api/hello should respond

Build

npm install && npm run build

Upload to S3

Upload the resulting index.zip to s3

create stack

aws --region=us-east-1 cloudformation create-stack \
  --stack-name minimal-example \
  --capabilities CAPABILITY_NAMED_IAM \
  --template-body file://iac/api.yml

list url

aws --region us-east-1 cloudformation describe-stacks \
  --stack-name minimal-example \
  --query "Stacks[0].Outputs[?OutputKey=='ApiUrl'].OutputValue" \
  --output text

update stack

aws --region=us-east-1 cloudformation update-stack \
--stack-name minimal-example \
--capabilities CAPABILITY_NAMED_IAM \
--template-body file://iac/api.yml