使用Elastic Beanstalk .ebextensions指定RDS数据库 [英] Using Elastic Beanstalk .ebextensions to specify an RDS database
问题描述
使用Elastic Beanstalk,您可以指定是否要使用.ebextensions创建RDS数据库吗?
With Elastic Beanstalk, can you specify whether you want to create an RDS database using .ebextensions?
推荐答案
否,.ebextensions是根据部署而不是根据环境创建进行评估的.当您自动创建Environmnet的CLI或API时,可以选择是否创建RDS.另外,您可以在.ebextensions中使用带有AWSEBRDSDatabase
名称的Resources
键来获取对该数据库的引用.
No, .ebextensions are evaluated per deployment, not per environment creation. You can choose to create or not the RDS when you create the Environmnet automatically the CLI or the API. Also, you can use a Resources
key with the AWSEBRDSDatabase
name in you .ebextensions to get a reference to that database.
请参阅: http://docs.aws.amazon. com/elasticbeanstalk/latest/dg/environment-resources.html
这篇关于使用Elastic Beanstalk .ebextensions指定RDS数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!