connection.modify_network_interface_attribute(network_interface.id,'deleteOnTermination',True, attachment_id=network_interface.attachment.id)
Unfortunately you wouldn't be able to create the interface with this attribute. Boto doesn't support it. You'd have to create the interface and then immediately modify it.
Would this be acceptable?
--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/-mFNN63kLrE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/11088c05-9f70-40fe-90c7-a7384bb18314%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Unfortunately you wouldn't be able to create the interface with this attribute. Boto doesn't support it. You'd have to create the interface and then immediately modify it.
Would this be acceptable?
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4edb9bcf-b592-40ff-8894-f05f0b51be4b%40googlegroups.com.
The latest commit has added support for delete_on_termination and source_destination_check. Please test and let me know how it goes.
I assume you have referenced eni.interface.id because you've seen the example? Note the code above that which contains a register statement. This allows you to reference output from that command. See http://docs.ansible.com/playbooks_variables.html for more on that.
Once you've used that register command you can reference all the values of the ENI creation.
If you're still having issues, post your playbook as it stands and any errors you're getting.
I assume you have referenced eni.interface.id because you've seen the example? Note the code above that which contains a register statement. This allows you to reference output from that command. See http://docs.ansible.com/playbooks_variables.html for more on that.
Once you've used that register command you can reference all the values of the ENI creation.
If you're still having issues, post your playbook as it stands and any errors you're getting.
The module does support region. You should be able to specify it without issue.
Can you get the subnet_id from the ec2_fact module?
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ad3d7eac-d815-4264-b3a1-798dd80c0fd5%40googlegroups.com.