Lambda function to check SSL certificate expiry date
- Create a SNS topic which will send an email
- Create a IAM role with SNS full access
- Now create a Lambda function with desired nemory and execution time limit. Add the IAM role created in the previous step.
- Copy and paste the Lambda function script, and don't forget to put the SNS ARN.