picadoh/motocker

using the container moto how do i do rds.create_db_snapshot()

Closed this issue · 1 comments

what i did:
had moto server running using your container (thanks!)
I started it with MOTO_SERVICE=rds

rds = client("rds", region_name='ap-southeast-2', endpoint_url='http://localhost:5001')
instance_2 = rds.create_db_instance(DBInstanceIdentifier='secondDatabase',
                                        AllocatedStorage=10,
                                        Engine='mysql',
                                        DBName='staging-mysql',
                                        DBInstanceClass='db.m1.small',
                                        LicenseModel='license-included',
                                        MasterUsername='root',
                                        MasterUserPassword='hunter2',
                                        Port=1234,
                                        DBSecurityGroups=["my_sg"])

instance_2.describe_db_instances() .... OK

rds.create_db_snapshot(DBSnapshotIdentifier='secondDatabaseSnap',
                       DBInstanceIdentifier='secondDatabase')

This fails because the method create_db_snapshot does not exist in rds module. it only exists in rds2.

How would you create the snapshots?

created my own container and got it working