-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Spot instance code error #63246
Spot instance code error #63246
Conversation
##### SUMMARY You need add following line to create spot instance ``` instance_initiated_shutdown_behavior: terminate ``` Otherwise, you will met error below: ``` instance_initiated_shutdown_behavior=stop is not supported for spot instances. ``` ##### ISSUE TYPE - Docs Pull Request +label: docsite_pr
@rulai-jianfang, just so you are aware we have a dedicated Working Group for aws. |
Thanks @rulai-jianfang for the contribution. The code may already work around this issue, but providing the parameter in the task will make this work in one API call instead of two, so it's a good optimization. |
##### SUMMARY Adds 'instance_initiated_shutdown_behavior: terminate' to spot instance example for greater efficiency. (cherry picked from commit 5ed163c)
* Update stat.py (#63289) Reword awkward documentation language. (cherry picked from commit b46299f) * Update win_disk_facts.py example (#63266) Fix incorrect index for second disk (should be `disks[1]` not `disks[0]`) (cherry picked from commit ce1c8c2) * Fix broken link (#63185) (cherry picked from commit 021d095) * Typo on line 161 (#63133) fix module name for azure_rm_manageddisk in one example (cherry picked from commit 81a6146) * docs: add Centos and Ubuntu to examples for playbook conditionals (#63085) Co-Authored-By: Sandra McCann <samccann@redhat.com> (cherry picked from commit 19587b3) * Spot instance code error (#63246) Adds 'instance_initiated_shutdown_behavior: terminate' to spot instance example for greater efficiency. (cherry picked from commit 5ed163c) * Pass a JSON file to the Lambda's payload (#63261) * Add an example of passing a JSON file to the Lambda's payload Events passed to Lambda are commonly in JSON format, the change provides an example of using JSON file as an alternative to the inline YAML payload in the other examples. (cherry picked from commit 1d5206f) * Update ec2.py (#63260) Change the explanation of spot_wait_timeout (cherry picked from commit 719170e) * fix aruba_config examples (#63136) (cherry picked from commit 6ff5968) * [ec2_launch_template] Update examples (#63152) - Update tasks names for existing examples - Add a new example showing how to delete a launch template (cherry picked from commit 32980f2)
SUMMARY
You need add following line to create spot instance
Otherwise, you will met error below:
ISSUE TYPE
+label: docsite_pr
SUMMARY
ISSUE TYPE
COMPONENT NAME
ADDITIONAL INFORMATION