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

[MSYS-677] Add --instance-initiated-shutdown-behavior option #514

Merged
merged 2 commits into from
Nov 20, 2017

Conversation

NAshwini
Copy link
Member

Adds an option in knife-ec2 to set the --instance-initiated-shutdown-behavior with the option to set "stop" or "terminate". The default is "stop".
cheery-pick the contains from PR: #507 .
Made changes as per review comments to work functionality successfully.

Tested with command:

knife ec2 server create -N AshTestRHEL7 -I ami-b63769a1 -f t2.micro -S ash_new_key -i  C:\Users\msys\.ssh\ash_new_key.pem --ssh-user ec2-user --region us-east-1 -Z us-east-1a --instance-initiated-shutdown-behavior terminate -r 'recipe[cbk1]' -c 'D:\chef-repo\.chef\knife.rb'

@NimishaS NimishaS merged commit f2d0bfe into chef:master Nov 20, 2017
@NimishaS NimishaS deleted the ash/add_shutdown_behavior branch November 20, 2017 12:45
@@ -453,6 +453,10 @@ class Ec2ServerCreate < Knife
:boolean => true,
:default => false

option :instance_initiated_shutdown_behavior,
:long => "--instance-initiated-shutdown-behavior STUTDOWN_BEHAVIOR",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's a typo here in STUTDOWN -> SHUTDOWN

@@ -133,7 +133,8 @@
:request_type => 'persistent',
:placement_group => nil,
:iam_instance_profile_name => nil,
:ebs_optimized => "false"
:ebs_optimized => "false",
:instance_initiated_shutdown_behavior=>nil
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:instance_initiated_shutdown_behavior => nil

NAshwini added a commit to MsysTechnologiesllc/knife-ec2 that referenced this pull request Nov 23, 2017
@NAshwini NAshwini changed the title Add --instance-initiated-shutdown-behavior option [MSYS-677] Add --instance-initiated-shutdown-behavior option Nov 23, 2017
@NimishaS
Copy link

@btm , fixed your review comments in #516.

NimishaS pushed a commit that referenced this pull request Nov 23, 2017
…_behavior

[MSYS-677] Fix the review comments for the PR #514
@sethrosenblum
Copy link

Will there be a minor release to publish this soon? It's been a few months

@NimishaS
Copy link

Yes @sethrosenblum , we are releasing knife-ec2 very soon in few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants