-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Support AWS Elastic Network Interfaces (ENI) #1149
Conversation
} | ||
|
||
new_interface_id := *resp.NetworkInterface.NetworkInterfaceID | ||
d.SetId(new_interface_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small nitpick in that new_interface_id
is never used beyond setting here, so d.SetId(*resp.NetworkInterface.NetworkInterfaceID)
works just as well. Don't feel you need to change this though 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorted this one with new commit
This looks very promising, thanks! |
Thanks for the feedback, will take a look through and make some changes. |
Very excited to have this feature. |
Hey @peterbeams do you think you'll be able to complete the work here? |
Hi @catsby - I'm working on the tweaks now - should have it pushed in couple of hours. Sorry for delay - got carried away with using TF to build my environment! |
Done with the updates, hopefully up to scratch now. Feel free to made any further tweaks you like though. Thanks! |
LGTM! |
Support AWS Elastic Network Interfaces (ENI)
Finished |
Great, thanks @catsby. |
I was looking through the code, but I did not see the ability to add existing ENIs to the instance. Is there an easy way to attach a newly generated instance to an existing ENI? Support under the aws_instance block would be huge. I didn't see it present, but that doesn't mean it isn't there @peterbeams |
I'm with @mdallman2570. We can attach the ENI to the instance after it's been created but I don't see a way to associate the ENI to the instance when it's creating the instance. This is useful for me to be able to have the ENI be assigned to eth0 on the instance and avoid any headache of updating the networking on the instance to use the ENI. |
@catsby yes it is. Thanks |
Great, just making sure I understood. I can't promise when I'll get to it, but at least it's being tracked separately |
There is code in |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Adding a new resource called aws_network_interface to create network interfaces and attach them to instances.
Mentioned in these issues ...
Add support for ENI's to
aws_instance
resource #84AWS Provider Coverage #28
Sample: