This experiment is about configuring S3 event notification to trigger Lambda and send a message to email through SNS in Lambda, by Cloudformation. The purpose of this experiment is
- To get comfortable with the syntax of Cloudformation, python and bash
- To acquire knowledge about Cloudformation requirements
- To get comfortable with IaC
- AWS cli
- Python and pip
- AWS account and user
- Change your bucket name, email address, iam user from
example.ymland the bucket name fromexample.py
- give execution permission and run bash script
deploy.sh
$ chmod +x deploy.sh kill.sh
$ ./deploy.sh-
Accept AWS SNS notification permission from your email, check your junk mail as well
-
Run
example.pyto push a simple zip file into s3 bucket
$ python example.py- to kill the stack, make sure your s3 bucket is empty, then run the script below:
$ ./kill.sh