Return InstanceProfile arn instead of NotImplementedError for get_cfn_attribute

This commit is contained in:
Jessie Nadler 2019-03-26 14:36:31 -04:00
parent 8644b2ff1d
commit 497965fadc

View File

@ -213,7 +213,7 @@ class InstanceProfile(BaseModel):
def get_cfn_attribute(self, attribute_name):
from moto.cloudformation.exceptions import UnformattedGetAttTemplateException
if attribute_name == 'Arn':
raise NotImplementedError('"Fn::GetAtt" : [ "{0}" , "Arn" ]"')
return self.arn
raise UnformattedGetAttTemplateException()