Add S3 parsing for CloudFormation

This commit is contained in:
Declan Shanaghy 2016-08-15 10:57:40 -07:00
commit 1441087e5c
2 changed files with 12 additions and 0 deletions

View file

@ -288,6 +288,16 @@ class FakeBucket(object):
def set_acl(self, acl):
self.acl = acl
@property
def physical_resource_id(self):
return self.name
@classmethod
def create_from_cloudformation_json(
cls, resource_name, cloudformation_json, region_name):
bucket = s3_backend.create_bucket(resource_name, region_name)
return bucket
class S3Backend(BaseBackend):