From 497965fadc6f1463da63820dfafd3bee9fd50ffb Mon Sep 17 00:00:00 2001 From: Jessie Nadler Date: Tue, 26 Mar 2019 14:36:31 -0400 Subject: [PATCH] Return InstanceProfile arn instead of NotImplementedError for get_cfn_attribute --- moto/iam/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/iam/models.py b/moto/iam/models.py index 92ac19da7..8937d262d 100644 --- a/moto/iam/models.py +++ b/moto/iam/models.py @@ -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()