You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is super ugly internally, but it presents a possibly OK interface
to users of the stack.
Users can specify 1-4 instance types separated by commas. When
launching OnDemand instances, the types will be attempted in priority
order. When launching spot instances (if they're enabled) all types are
considered.
Internally, this is implemented by appending 3 commas to the
InstanceType and re-splitting it (to ensure there's ALWAYS at least 4
list items passed to !Select.
Copy file name to clipboardExpand all lines: templates/aws-stack.yml
+9-27Lines changed: 9 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -39,9 +39,6 @@ Metadata:
39
39
- ImageId
40
40
- ImageIdParameter
41
41
- InstanceType
42
-
- InstanceType2
43
-
- InstanceType3
44
-
- InstanceType4
45
42
- AgentsPerInstance
46
43
- KeyName
47
44
- SecretsBucket
@@ -207,7 +204,7 @@ Parameters:
207
204
Default: ""
208
205
209
206
InstanceType:
210
-
Description: Instance type
207
+
Description: Instance type. Comma separated list with 1-4 instance types. The order is a prioritised preference for launching OnDemand instances, and an non-prioritised list of types to consider for Spot Instances (where used).
211
208
Type: String
212
209
Default: t3.large
213
210
MinLength: 1
@@ -223,21 +220,6 @@ Parameters:
223
220
Type: Number
224
221
Default: 0
225
222
226
-
InstanceType2:
227
-
Description: The secondary instance type to use when requesting mixed instances. Omit this parmameter to only request 1 instance type.
228
-
Type: String
229
-
Default: ""
230
-
231
-
InstanceType3:
232
-
Description: The tertiary instance type to use when requesting mixed instances. Omit this parmameter to only request 2 instance types.
233
-
Type: String
234
-
Default: ""
235
-
236
-
InstanceType4:
237
-
Description: The quaternary instance type to use when requesting mixed instances. Omit this parmameter to only request 3 instance types.
238
-
Type: String
239
-
Default: ""
240
-
241
223
OnDemandPercentage:
242
224
Description: Percentage of total instances that should launch as OnDemand. Reduce this to use some Spot Instances when they're available.
0 commit comments