samedi 19 avril 2014

les services web Amazon - appels imbriqués modèle de waitCondtion - aws cloudFormation modèle ? -Débordement de pile


 "Resources": {    
"myRds": {
"Type": "AWS::RDS::DBInstance",
"Properties": {
........ code......
"UserData" : { "Fn::Base64" : {"Ref" : "myWaitHandle"}},
}
},
"myWaitHandle" : {
"Type" : "AWS::CloudFormation::WaitConditionHandle",
"Properties" : {
}
},
"myWaitCondition" : {
"Type" : "AWS::CloudFormation::WaitCondition",
"DependsOn" : "myRds",
"Properties" : {
"Handle" : { "Ref" : "myWaitHandle" },
"Timeout" : "8500"
}
}
"Outputs": {
"myRDSEndPointLink": {
"Description": "SCS RDS End Point Link",
"Value": {
"Fn::Join": [
"",
[
{
"Fn::GetAtt": [
"myRds",
"Endpoint.Address"
]
},
":",
{
"Fn::GetAtt": [
"myRds",
"Endpoint.Port"
]
}
]
]
}
},
"myApplicationData" : {
"Value" : { "Fn::GetAtt" : [ "myWaitCondition", "Data" ]},
"Description" : "The data passed back as part of signalling the WaitCondition."
}
}

I have ELB,Instance,RDS under this aws cloudformation JSON template.. I want to use waitCondition to run after creation on myRds and then pass RDS endpoint.address to another template located in S3 bucket/or anywhere.. Can any1 please help me with this.. I am not getting enough documentation on amazon which shows how to pass rds enpoint.address or anything to another template right after creation of RDS.



 "Resources": {    
"myRds": {
"Type": "AWS::RDS::DBInstance",
"Properties": {
........ code......
"UserData" : { "Fn::Base64" : {"Ref" : "myWaitHandle"}},
}
},
"myWaitHandle" : {
"Type" : "AWS::CloudFormation::WaitConditionHandle",
"Properties" : {
}
},
"myWaitCondition" : {
"Type" : "AWS::CloudFormation::WaitCondition",
"DependsOn" : "myRds",
"Properties" : {
"Handle" : { "Ref" : "myWaitHandle" },
"Timeout" : "8500"
}
}
"Outputs": {
"myRDSEndPointLink": {
"Description": "SCS RDS End Point Link",
"Value": {
"Fn::Join": [
"",
[
{
"Fn::GetAtt": [
"myRds",
"Endpoint.Address"
]
},
":",
{
"Fn::GetAtt": [
"myRds",
"Endpoint.Port"
]
}
]
]
}
},
"myApplicationData" : {
"Value" : { "Fn::GetAtt" : [ "myWaitCondition", "Data" ]},
"Description" : "The data passed back as part of signalling the WaitCondition."
}
}

I have ELB,Instance,RDS under this aws cloudformation JSON template.. I want to use waitCondition to run after creation on myRds and then pass RDS endpoint.address to another template located in S3 bucket/or anywhere.. Can any1 please help me with this.. I am not getting enough documentation on amazon which shows how to pass rds enpoint.address or anything to another template right after creation of RDS.


0 commentaires:

Enregistrer un commentaire