I'm trying to create a conditional block using the Fn::GetAtt intrinsic function but it is failing with below error -
"Template validation error: Template format error: Unresolved dependencies. Cannot reference resources in the Conditions block of the template."
My condition -
"SomeCondition":{
"Fn::Equals":[
{
"Fn::GetAtt":[
"CustomResource",
"ID"
]
},
"SOME-UUID"
]
}
Can someone suggest a workaround for this? I wanted to use the condition to dynamically select a script in my user-data section.
ID
in it? – Daniel Farrell