-
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
Adds termination support to the ec2 module #3293
Conversation
Pass in the `instances` output of the ec2 module to terminate a list of instances that were previously provisioned. Useful for automated testing.
I was starting to implementing something similar, cool to see you already have something! Do you think we could get with a Also could we use the existing |
So you think this is better? ec2: state=absent id={{ item.id }} I couldn't decide whether to pass in a single ID or the full ec2.instances Since the id parameter isn't used right now for instance id in the create -John On Fri, Jun 21, 2013 at 10:26 AM, Vincent Viallet
|
Well, I like the approach of the For the I'm very confused by the use of |
The client-token is an arbitrary string that you set that can be used for Maybe to make things a little cleaner we could add a new parameter to the or module: ec2 In the end I want to make it very easy to pass in the instances for -John On Fri, Jun 21, 2013 at 10:57 AM, Vincent Viallet
|
+1 to this: In the end I want to make it very easy to pass in the instances for We're still talking about idempotency here in this thread so lets reference: #3299 I think this is a good solution for now and I'd go with instance_ids. I think we all agree with @zbal in that we're moving in the right direction towards a module with various idempotent options. Lots of this code going in can be re-used but ideally we do want to end up with a state parameter controlling everything, then with this terminate capability and an ability to choose the idempotency attribute. /me starts thinking we need to have an AWS module session/breakout in IRC or at the next Ansible event. Do you think we can schedule something like this where we all meet to discuss? |
+1 for simplicity and clarity ! I prefer the 2nd option:
I'm up for an AWS / Cloud modules discussion as well around idempotency and guidelines; I pushed the Digital Ocean (#3205) / Linode (#3298) platforms a few days ago, I'm pretty sure there is a whole bunch of other cloud platforms that will have to be covered in a next future. |
OK I think this is what we want, @lwade @zbal look good? Example playbook:
|
Looks good to me. |
Likewise :) On 24 June 2013 04:10, Vincent Viallet notifications@github.com wrote:
|
@mpdehaan This is ready to merge |
Adds termination support to the ec2 module
merginated, thanks! |
don't know if there is something to be resolved on #3299 relative to comments there about this, let's use that thread to discuss. |
Currently using this to automate provisioning and tear-down with a jenkins job.
Pass in the
instances
output of the ec2 moduleto terminate a list of instances that were previously provisioned.