-
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
providers/aws: expose network interface id #6751
providers/aws: expose network interface id #6751
Conversation
Expose the network interface ID that is created with a new instance. This can be useful when associating an existing elastic IP to the default interface on an instance that has multiple network interfaces.
5f530c1
to
8e60d7a
Compare
} | ||
} | ||
} else { | ||
d.Set("subnet_id", instance.SubnetId) | ||
d.Set("network_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.
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.
Because there are no network interfaces to get it from. If there is one from somewhere else that I don't know about, I'd be happy to change it.
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.
got it - thanks
Hi @zsalzbank This looks good to me after running the tests:
Thanks for all the work here 👍 Paul |
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. |
Expose the network interface ID that is created with a new instance.
This can be useful when associating an existing elastic IP to the
default interface on an instance that has multiple network interfaces.
I wasn't sure if any tests were required for this. When I looked at the existing tests, I didn't see any for attributes that are returned by the provider. If I need to add a test, can somebody point me in the right direction for where to add them?