While trying to start and stop RDS instances with boto3 on AWS Lambda, I am getting an interesting error - 'RDS' object has no attribute 'stop_db_instance': AttributeError
Even the simplest code throws this error, e.g.
import boto3
def lambda_handler(event, context):
boto3.client('rds').stop_db_instance(DBInstanceIdentifier='myInstanceID')
I am using python3.6 runtime, so as per information available on this page, boto3 1.4.4 should be available (which I assume already has proper methods - https://boto3.readthedocs.io/en/latest/reference/services/rds.html#RDS.Client.stop_db_instance)
Any suggestions are appreciates!