template error instance of fngetatt references undefined resource 3199

Template Error: Instance of Fn::GetAtt References Undefined Resource

template error instance of fngetatt references undefined resource

Fn::GetAtt is an intrinsic function that returns the value of an attribute from a resource. It also returns the attribute’s group name and owner alias. Generally, you should only use this function on the logical resource name. The value should be unique within a region. If you want to use a different name for the attribute, you should use the Ref function.