How can I launch an elastic beanstalk application with a RDS database using boto?
I am sending the following option settings in my create_environment call but the RDS db is not launched:
('aws:rds:dbinstance', 'DBAllocatedStorage', '5'),
('aws:rds:dbinstance', 'DBEngine', 'postgresql'),
('aws:rds:dbinstance', 'DBEngineVersion', '9.3'),
('aws:rds:dbinstance', 'DBInstanceClass', 'db.t2.micro'),
('aws:rds:dbinstance', 'DBPassword', self.rds_password),
('aws:rds:dbinstance', 'DBUser', self.rds_username),
Just specifying option settings is not sufficient to create an RDS. The option settings are used to configure settings for RDS. To create an RDS along with your beanstalk environment you have three options:
First one is pretty simple. For the second one you can follow the tutorial here.
I recently responded on the third possibility here.