Posts

Showing posts from March, 2020

AWS RDS STOP & START

AWS RDS STOP & START 1.  Step1: Create IAM Role and attach the below policy. {     "Version": "2012-10-17",     "Statement": [         {             "Action": [                 "rds:DescribeDBInstances",                 "rds:StopDBInstance",                 "rds:StartDBInstance"             ],             "Effect": "Allow",             "Resource": "*"         }     ] } 2.  Create RDS start function-Python 2.7 and use the below script import boto3 import logging def lambda_handler(event,context): logger = logging.getLogger() logger.setLevel(logging.INFO) #Boto3 connection try: rds=boto3.client('rds') logger.info("Connected to ...