Is it possible to use Fn::ImportValue inside Fn::GetAtt. Currently, I'm trying to do the following
"ParentId": {
"Fn::GetAtt": [
{
"Fn::ImportValue": {
"Fn::Sub": "${ParentStack}:RestApi"
}
},
"RootResourceId"
]
}
But I'm facing an error. "Template error: every Fn::GetAtt object requires two non-empty parameters, the resource name and the resource attribute".