Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new EC2 based capacity providers #754

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading