Implement CloudFormations IAMRole::GetArn

This commit is contained in:
Bert Blommers 2019-11-07 11:18:03 -08:00
commit ad23b65784
2 changed files with 17 additions and 13 deletions

View file

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