Requirements:
- Unix-based machine
- AWS account
- aws-cli installed on the machine
- IAM user with access to CloudFormation, IAM, Lambda, to create a cloudformation stack
- S3 bucket (should be at the same region as a lambda)
How to deploy:
- clone the repo
git clone https://github.com/vadymbat/my_first_custom_resource \
&& cd my_first_custom_resource
- Put your aws parameters to
build.sh
anddeploy.sh
- Run
build.sh
to build and upload zip for a lambda
bash build.sh
- Run
deploy.sh
to create a cloudformation stack
bash deploy.sh
Also take a look at logs which lambda generated.
More information about custom resources here.
The link to the original AWS guide.