How to use boto to launch an elastic beanstalk wit

2019-07-07 06:32发布

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),

1条回答
一纸荒年 Trace。
2楼-- · 2019-07-07 06:52

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:

  1. Use the console
  2. Use EB CLI
  3. Use an ebextension to specify an RDS resource

First one is pretty simple. For the second one you can follow the tutorial here.

I recently responded on the third possibility here.

查看更多
登录 后发表回答