Add support for CloudFormation Fn::GetAtt to KMS Key (#1681)
This commit is contained in:
parent
dcdaca8984
commit
c3b690114c
3 changed files with 60 additions and 0 deletions
|
|
@ -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):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue