Merge pull request #1537 from william-richard/cloudformation-ecs-cluster-name-optional
If Properies isn't set, cloudformation will just use default values
This commit is contained in:
commit
080e3c5f5d
3 changed files with 72 additions and 22 deletions
|
|
@ -61,7 +61,11 @@ class Cluster(BaseObject):
|
|||
|
||||
@classmethod
|
||||
def create_from_cloudformation_json(cls, resource_name, cloudformation_json, region_name):
|
||||
properties = cloudformation_json['Properties']
|
||||
# if properties is not provided, cloudformation will use the default values for all properties
|
||||
if 'Properties' in cloudformation_json:
|
||||
properties = cloudformation_json['Properties']
|
||||
else:
|
||||
properties = {}
|
||||
|
||||
ecs_backend = ecs_backends[region_name]
|
||||
return ecs_backend.create_cluster(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue