0
我创建使用cloudformation
模板的opsworks
栈,我在我的堆栈需要一个database
RDS实例几个应用程序:错误的Opsworks:无法找到RDS实例与ARN
"WordpressApp": {
"Type": "AWS::OpsWorks::App",
"Properties": {
"AppSource" : {
"Type" : "git",
"Url" : "git://github.com:myproject/wordpress.git",
"Revision" : "master"
},
"DataSources":[{
"Arn" : { "Ref" : "RDSInstanceARN" },
"DatabaseName" : "application",
"Type" : "RdsDbInstance"
}],
"Description": "website application",
"Name" : "app",
"Shortname" : "app",
"StackId" : {"Ref": "MyStack"},
"Type" : "php"
}
},
这里在RDSInstancARN
参数:
"RDSInstanceARN" : {
"Description" : "Arn of the RDS instance",
"Type" : "String",
"Default" : "arn:aws:rds:eu-west-1:454524154879:db:instanceappdb"
}
的ARN写得很好。 当我测试模板,我得到这个错误:
unable to find rds instance with ARN
什么是这个错误的原因是什么?我不明白,arn是正确编写的,它存在于aws帐户中并正在运行。请任何想法吗?谢谢。