-
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
provider/aws: Allow Instance to be computed in EIPs #3036
Conversation
yay! This looks such a simple change :) Thanks @catsby |
This just means "remove the instance attachment of the EIP" not "destroy the instance" right?
I think they're both populated in the Or maybe I'm misunderstanding how we have both of them specified here. Maybe you can 'splain me more? |
@phinze yes, it will remove the attachment |
@stack72 cool - for a second i was like "what are you doing, Terraform?!" 😅 |
haha, yeah that's my bad. It will not destroy the instance. I updated to match your wording 😄
well, you can send them both..
but it seems to favor the Unfortunately, I can't have both the |
Yeah I think for now we just document the limitation and then ship it. 👍 🚢 |
8ab38cd
to
9d973f1
Compare
Documented the limitation/behavior in 9d973f1, pull this in now |
provider/aws: Allow Instance to be computed in EIPs
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. |
If you have an EIP attached to a network interface, which then has an Instance attached to it, Terraform plans will want to remove the instance attachment of the EIP, even though there is no explicit connection made by the user:
After applying, future plans will show this:
This PR make
instance
a computed attribute, and also removes theConflictsWith
restraint fromnetwork_interface
. Oddly enough, the AssociateAddress API docs say you can't have both of these specified, but we do here and get no error.Fixes #2952