Created
March 4, 2018 05:45
-
-
Save arienmalec/9f72cd7b45937f5ed547c8d0e17d7659 to your computer and use it in GitHub Desktop.
Deployment script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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