This Lambda cron runs every morning and sends an email because I'm bad at looking at the weather app
- Pulumi CLI
- AWS Credentials that are allowed to provision the infrastructure
- AWS CLI
- Python3.7 or higher installed on your computer
Here are the steps to build this project. Make sure that you have installed the requirements to do these commands.
- Clone the repo
- Sign up for a free weatherapi.com account. Make sure you have an API Key
- Add in your desired email in the environment variable SNS_EMAIL, the zip code for the weather into WEATHER_NOTIFICATION_ZIP_CODE, and weather API key in WEATHER_API_KEY
- Run pulumi up, review the infrastructure being created, then select yes
- Once the stack is completely built, you will get an email from AWS asking you to opt-in to alerts from the newly created SNS target. Accept it so you will receive alerts later
- After the infrastructure has been provisioned, you can go into the AWS console or invoke the Lambda from the AWS CLI