[英]Create an RDS Opsworks Layer by a Cloudformation template
I'm making a CloudFormation template that creates an opsworks stack, layers and few applications. 我正在制作一个CloudFormation模板,该模板创建一个opsworks堆栈,层和少量应用程序。 Within my layers, I have opsworks ones and RDS ones.
在我的图层中,我有opsworks和RDS。 In the AWS documentation, there is only how to create
Opsworks::Layer
but I don't know how to make an Amazon RDS service layer: 在AWS文档中,只有如何创建
Opsworks::Layer
但我不知道如何制作Amazon RDS服务层:
{
"Type": "AWS::OpsWorks::Layer",
"Properties": {
"Attributes" : { String:String },
"AutoAssignElasticIps" : Boolean,
"AutoAssignPublicIps" : Boolean,
"CustomInstanceProfileArn" : String,
"CustomJson" : JSON object,
"CustomRecipes" : Recipes,
"CustomSecurityGroupIds" : [ String, ... ],
"EnableAutoHealing" : Boolean,
"InstallUpdatesOnBoot" : Boolean,
"LifecycleEventConfiguration" : LifeCycleEventConfiguration,
"LoadBasedAutoScaling" : LoadBasedAutoScaling,
"Name" : String,
"Packages" : [ String, ... ],
"Shortname" : String,
"StackId" : String,
"Type" : String,
"VolumeConfigurations" : [ VolumeConfiguration, ... ]
}
}
My aim is to automate the creation of my opsworks resources by cloudformation. 我的目标是通过cloudformation自动创建opsworks资源。 Any idea how to do this ?
任何想法如何做到这一点? Thank you
谢谢
Unfortunately, according to Richard@AWS as of Dec 9 2015 , the RegisterRdsDbInstance
API which registers an RDS instance as an OpsWorks service layer is not implemented through an official CloudFormation resource, and there are no scheduled plans to do so. 不幸的是,根据截至2015年12月9日的Richard @ AWS的说法,未通过官方CloudFormation资源实现将RDS实例注册为OpsWorks服务层的
RegisterRdsDbInstance
API ,并且没有计划的计划。
You can contact AWS to request adding this to their roadmap, but in the meantime here are some alternatives you can try: 您可以联系AWS请求将其添加到他们的路线图中,但是与此同时,您可以尝试以下替代方法:
AWS::OpsWorks::Layer
with a Type
of db-master
, as described in the AWS OpsWorks Template Snippet . db-master
Type
的AWS::OpsWorks::Layer
。 RegisterRdsDbInstance
API call, eg, using a Lambda function and the NodeJS AWS SDK. RegisterRdsDbInstance
API调用,例如,使用Lambda函数和NodeJS AWS开发工具包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.