This Lambda Code Stop Running RDS Cluster which have specific Tag using boto3 library.
-
Create Lambda as per lambda_function.py code(Python 3.7)
-
Schedule CloudWatch Trigger in Lambda with Schedule expression: cron(01 15 * * ? *) . This will trigger lambda function every day on 9:01 PM
-
Add Tag(Mention in cunstom_filter) in RDS Cluster so that code identify the same.