Simple serverless project that deploys an event bridge event, a lambda and an sns topic. Together, these resources will notify you weekly of any Cloudformation stacks left in your account and sort them by Age.
Here is an example of the email that is received:
Serverless to deploy the code https://www.serverless.com/framework/docs/getting-started
Using NPM:
npm install -g serverless
- Clone this repo to your local environment.
- Authenticate into the account in which you intend on deploying this tool in.
- Change the variables in the vars.env to suit your needs.
- Deploy the tool using Serverless
sls deploy
. - After deployment, confirm the subscription in your email inbox.
You must confirm the subscription before you test the lambda otherwise the emails will not send.
- Navigate to the cfn-stack-removal-reminder lambda and create a test. The event data for this test is not important because the lambda itself does not use the data.
- Authenticate into the account in which you deployed this tool in.
- Destroy the stack using Serverless
sls destroy
.