Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnPreston committed May 18, 2024
1 parent f55bedb commit b0012dd
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 10 deletions.
11 changes: 1 addition & 10 deletions ecs_composex/specs/services.x-ecs.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,7 @@
},
"OperatingSystemFamily": {
"type": "string",
"enum": [
"LINUX",
"WINDOWS_SERVER_2004_CORE",
"WINDOWS_SERVER_2016_FULL",
"WINDOWS_SERVER_2019_CORE",
"WINDOWS_SERVER_2019_FULL",
"WINDOWS_SERVER_2022_CORE",
"WINDOWS_SERVER_2022_FULL",
"WINDOWS_SERVER_20H2_CORE"
],
"pattern": "LINUX|^WINDOWS[\\S]+",
"description": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-runtimeplatform.html#cfn-ecs-taskdefinition-runtimeplatform-operatingsystemfamily"
},
"CapacityProviderStrategy": {
Expand Down
30 changes: 30 additions & 0 deletions ecs_composex/specs/x-cluster.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,36 @@
"default": false
}
}
},
"CapacityProviders": {
"type": "object",
"description": "Allows to define one or more Capacity Providers that will re-use or create ASGs.",
"patternProperties": {
"x-": {},
"^[a-zA-Z0-9-]+$": {
"$ref": "#/properties/CapacityProvider"
}
}
},
"CapacityProvider": {
"type": "object",
"description": "Capacity Provider definition",
"properties": {
"LaunchTemplateArn": {
"type": "string",
"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.",
"pattern": "^arn:aws[\\S]+$"
},
"AutoscalingGroupArn": {
"type": "string",
"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."
},
"InstanceType": {
"type": "string",
"description": "For new LT & ASG, set the instance type you wish to use.",
"default": "t4g.medium"
}
}
}
},
"oneOf": [
Expand Down

0 comments on commit b0012dd

Please sign in to comment.