如何使用博托推出的弹性魔豆与RDS资源 [英] How to use boto to launch an elastic beanstalk with an rds resource
问题描述
我如何启动一个弹性魔豆应用程序与RDS数据库使用博托?
我送我的create_environment调用下面的选项设置,但RDS数据库未启动:
(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)
只要指定选项设置不足以创造一个RDS。该选项设置用于配置设置RDS。 要连同您的青苗环境中创建一个RDS,你有三种选择:
- 使用控制台
- 使用EB CLI
- 使用的ebextension指定一个RDS资源
第一个是pretty的简单。 对于第二个,你可以按照本教程这里。
我最近回答的第三个可能性这里。
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:
- Use the console
- Use EB CLI
- 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.
这篇关于如何使用博托推出的弹性魔豆与RDS资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!