साथ आरडीएस उदाहरण रोक boto3 शुरू करने और एडब्ल्यूएस लैम्ब्डा पर boto3 साथ आरडीएस उदाहरणों बंद करो, मैं एक दिलचस्प त्रुटि हो रही है की कोशिश कर रहा है - 'RDS' object has no attribute 'stop_db_instance': AttributeError
शुरू/एडब्ल्यूएस लैम्ब्डा
यहां तक कि सबसे सरल कोड इस त्रुटि है, उदा फेंकता
कोई सुझाव की सराहना करता है कर रहे हैं -
import boto3
def lambda_handler(event, context):
boto3.client('rds').stop_db_instance(DBInstanceIdentifier='myInstanceID')
मैं python3.6 क्रम का उपयोग कर रहा है, तो प्रति this पेज पर उपलब्ध जानकारी के रूप में, boto3 1.4.4 उपलब्ध होना चाहिए (https://boto3.readthedocs.io/en/latest/reference/services/rds.html#RDS.Client.stop_db_instance जो मैं पहले से ही मान उचित तरीके है) ! त्रुटि:
import boto3
rds = boto3.client('rds')
rds.stop_db_instance(DBInstanceIdentifier='myInstanceID')
आप अभी भी "AttributeError आरडीएस वस्तु कोई विशेषता 'stop_db_instance' है" मिलता है:
वर्क्स एक आकर्षण की तरह, जैसा कि आप ने लिखा है - botocore संस्करण समस्या थी !. धन्यवाद! –