A simple sqs lambda in go
GOOS=linux GOARCH=amd64 go build
$ > make build
-
Create python virtual env
$ > make package$ > source ./venv/bin/activate -
Create the deployment bucket stack
$ > cd scripts/python/src$ > python -m helloworld.bucketenv aws_account_id aws_region -
Upload zip to bucket
$ > ./deploy.sh -
Create the stack for the function
$ > cd scripts/python/src$ > python -m helloworld.funcenv aws_account_id aws_region
After making changes to the code and building the zip. Use the following script to update the lambda.
$ > ./update.sh
The following script can be used to test out the functionality.
$ > cd scripts/python/src
$ > python -m helloworld.publish.py aws_account_d aws_region
aws cli is used to CreateEventSourceMapping instead of doing it via cloudformation