Add S3 parsing for CloudFormation
This commit is contained in:
parent
ae938223d4
commit
1441087e5c
2 changed files with 12 additions and 0 deletions
|
|
@ -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):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue