Reputation: 4908
I have a CloudFormation template, and its Outputs
part is like this:
"Outputs": {
"QueueSubscriptions": {
"Description": "Topics subscribed by queue",
"Value": {
"Fn::GetAtt" : [ "BRIDGE2ESBQUEUE", "Subscriptions" ]
}
}
}
The Subscriptions
is an array. So, I get the error Template format error: Every Value member must be a string
. Is there any way to output the Subscriptions
array in the template? Thanks.
Upvotes: 3
Views: 3939
Reputation: 1165
You should be able to use the Fn::Join intrinsic function like this:
"Outputs": {
"QueueSubscriptions": {
"Description": "Topics subscribed by queue",
"Value": {
"Fn::Join" : [ ",", { "Fn::GetAtt" : [ "BRIDGE2ESBQUEUE", "Subscriptions" ] } ]
}
}
}
Upvotes: 5