Add support for CloudFormation Fn::GetAtt to KMS Key (#1681)

This commit is contained in:
temyers 2018-07-13 18:40:54 +08:00 committed by Terry Cain
commit c3b690114c
3 changed files with 60 additions and 0 deletions

View file

@ -58,6 +58,12 @@ class Key(BaseModel):
return key
def get_cfn_attribute(self, attribute_name):
from moto.cloudformation.exceptions import UnformattedGetAttTemplateException
if attribute_name == 'Arn':
return self.arn
raise UnformattedGetAttTemplateException()
class KmsBackend(BaseBackend):