I'd like to be able to retrieve the string from GetAtt object, looking at the class definition, it's not apparent, I'd like to perform the following operation
first_instace_DNSName = GetAttr(first_instance, "DNSName")
print first_instance_DNSName
exit()
the code above returns a troposphere object, I'd like to parse the actual value of the DNSName from that object.
Thoughts?
class GetAtt(AWSHelperFn):
def __init__(self, logicalName, attrName):
self.data = {'Fn::GetAtt': [self.getdata(logicalName), attrName]}
def JSONrepr(self):
return self.data