Fix: S3 Bucket does not support attribute type Arn in Fn::GetAtt (#3388)

Fixes #3387
This commit is contained in:
Brian Pandola 2020-10-16 03:29:26 -07:00 committed by GitHub
commit 6505c893b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 0 deletions

View file

@ -1065,6 +1065,8 @@ class FakeBucket(CloudFormationModel):
raise NotImplementedError('"Fn::GetAtt" : [ "{0}" , "DomainName" ]"')
elif attribute_name == "WebsiteURL":
raise NotImplementedError('"Fn::GetAtt" : [ "{0}" , "WebsiteURL" ]"')
elif attribute_name == "Arn":
return self.arn
raise UnformattedGetAttTemplateException()
def set_acl(self, acl):