When updating or creating an AWS Elastigroup configuration, users may encounter the error message “Cannot set both 'ondemand' and 'onDemandTypes' parameters.” This occurs due to conflicting configuration settings between two parameters used to define On-Demand instance types.
In an Elastigroup configuration, only one of the following parameters can be defined at a time:
-
ondemand: Specifies a single On-Demand instance type -
onDemandTypes: Lists multiple On-Demand instance types
Both parameters cannot be set simultaneously. One must be explicitly set to null.
Example
To configure multiple On-Demand instance types, set the ondemand parameter to null and define the instance types under onDemandTypes:
"onDemandTypes": [
"m6g.2xlarge",
"m6gd.2xlarge"
],
"ondemand": null
Refer to the following resources for more details on parameter usage and examples:
Related Articles
Fix the “Cannot set both ‘ondemand’ and ‘onDemandTypes’ parameters” message 4Number of Views Resolve error "Can't Spin On-Demand Instances: Code: InvalidKeyPair.NotFound" 9Number of Views Resolve the “instance has been detected as stopped” error in Elastigroup 5Number of Views Resolving the “Failed to get results from AWUService” Error 9Number of Views Resolve the “value contains a conflict between peers” error during Elastigroup import 4Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add additional feedback (optional)
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
|
FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513
(toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367
(toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895
2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago