Skip to content
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

Updating EIP Instance to Computed #2951

Closed
wants to merge 1 commit into from
Closed

Updating EIP Instance to Computed #2951

wants to merge 1 commit into from

Conversation

stack72
Copy link
Contributor

@stack72 stack72 commented Aug 6, 2015

As per #2943

When we attach an instance to an EIP, terraform currently tries to destroy it:

My code works as follows:

resource "aws_eip" "nat_ip" {
  vpc = true
  network_interface = "${aws_network_interface.nat_eni.id}"
}

resource "aws_network_interface" "nat_eni" {
  subnet_id = "${aws_subnet.primary-public.id}"
  security_groups = ["${aws_security_group.nat.id}"]
  source_dest_check = false

  tags {
    Name = "NAT ENI"
  }
}

When an instance comes up, it attaches itself to the ENI (thanks to the PR above, that stays). But it looks like the EIP is removing itself on the second run:

~ aws_eip.nat_ip
    instance: "i-3f8f8092" => ""

@stack72 stack72 closed this Aug 6, 2015
@stack72
Copy link
Contributor Author

stack72 commented Aug 6, 2015

Closed this for now until I can get the tests working. Opened an issue as #2952 incase anyone fixes it in the mean-time

@ghost
Copy link

ghost commented May 1, 2020

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.

@ghost ghost locked and limited conversation to collaborators May 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant