Skip to content

Commit deed9bc

Browse files
committed
WIP
1 parent 603c18b commit deed9bc

File tree

2 files changed

+31
-10
lines changed

2 files changed

+31
-10
lines changed

ecs_composex/specs/services.x-ecs.spec.json

+1-10
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,7 @@
2020
},
2121
"OperatingSystemFamily": {
2222
"type": "string",
23-
"enum": [
24-
"LINUX",
25-
"WINDOWS_SERVER_2004_CORE",
26-
"WINDOWS_SERVER_2016_FULL",
27-
"WINDOWS_SERVER_2019_CORE",
28-
"WINDOWS_SERVER_2019_FULL",
29-
"WINDOWS_SERVER_2022_CORE",
30-
"WINDOWS_SERVER_2022_FULL",
31-
"WINDOWS_SERVER_20H2_CORE"
32-
],
23+
"pattern": "LINUX|^WINDOWS[\\S]+",
3324
"description": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-runtimeplatform.html#cfn-ecs-taskdefinition-runtimeplatform-operatingsystemfamily"
3425
},
3526
"CapacityProviderStrategy": {

ecs_composex/specs/x-cluster.spec.json

+30
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,36 @@
6262
"default": false
6363
}
6464
}
65+
},
66+
"CapacityProviders": {
67+
"type": "object",
68+
"description": "Allows to define one or more Capacity Providers that will re-use or create ASGs.",
69+
"patternProperties": {
70+
"x-": {},
71+
"^[a-zA-Z0-9-]+$": {
72+
"$ref": "#/properties/CapacityProvider"
73+
}
74+
}
75+
},
76+
"CapacityProvider": {
77+
"type": "object",
78+
"description": "Capacity Provider definition",
79+
"properties": {
80+
"LaunchTemplateArn": {
81+
"type": "string",
82+
"description": "Set the ARN (with version) of the LaunchTemplate that you want to use for this Capacity Provider. If not set, new one will be created.",
83+
"pattern": "^arn:aws[\\S]+$"
84+
},
85+
"AutoscalingGroupArn": {
86+
"type": "string",
87+
"description": "Set to the ARN of the AutoScaling group you wish to re-use for this CapacityProvider. If not set, a new one will be created."
88+
},
89+
"InstanceType": {
90+
"type": "string",
91+
"description": "For new LT & ASG, set the instance type you wish to use.",
92+
"default": "t4g.medium"
93+
}
94+
}
6595
}
6696
},
6797
"oneOf": [

0 commit comments

Comments
 (0)