Skip to content

Instantly share code, notes, and snippets.

@arienmalec
Created March 4, 2018 05:45
Show Gist options
  • Select an option

  • Save arienmalec/9f72cd7b45937f5ed547c8d0e17d7659 to your computer and use it in GitHub Desktop.

Select an option

Save arienmalec/9f72cd7b45937f5ed547c8d0e17d7659 to your computer and use it in GitHub Desktop.
Deployment script
#!/bin/sh
rm -rf deploy
mkdir deploy
GOOS=linux go build -o ./deploy/hello
pushd deploy
zip hello.zip hello
popd
aws cloudformation package \
--template-file hello.yaml \
--output-template-file serverless-deploy_hello.yaml \
--s3-bucket hello_deploy
aws cloudformation deploy\
--template-file serverless-deploy_hello.yaml\
--stack-name hello-lambda\
--capabilities CAPABILITY_IAM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment