If Properies isn't set, cloudformation will just use default values
This commit is contained in:
parent
5fe575b6ed
commit
0ed388b4b8
2 changed files with 71 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