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

source_dest_check flag for aws_network_interface #2407

Closed
kayvonghaffari opened this issue Jun 19, 2015 · 6 comments
Closed

source_dest_check flag for aws_network_interface #2407

kayvonghaffari opened this issue Jun 19, 2015 · 6 comments

Comments

@kayvonghaffari
Copy link

Not sure if this is currently in another issue. We're setting up a cluster of 2 NATs which connects to 2 ENIs. We'd like to set the source_dest_check flag for the ENIs to false. It seems like the only way to accomplish this is through the aws_instance resource. Since we're using Auto Scaling Groups + a Launch Configuration for the NATs, we're not

Our workaround at the moment is to manually set the flag to false via the AWS console.

Ideally it would look something like this:

resource "aws_network_interface" "network_interface" {
  subnet_id = "${aws_subnet.public_subnet.id}"
  security_groups = ["${aws_security_group.nat_security_group.id}"]
  source_dest_check = false
}

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

... 

resource "aws_launch_configuration" "nat_launch_config" {
   ...
}
@phinze
Copy link
Contributor

phinze commented Jun 19, 2015

Looks like we can accomplish this with ModifyNetworkInterfaceAttribute. Tagged and we'll take a look!

@stack72
Copy link
Contributor

stack72 commented Jul 14, 2015

I have just added a PR that may allow this #2721

@jszwedko
Copy link
Contributor

Fixed by #2741 (released as 0.6.2)

@phinze
Copy link
Contributor

phinze commented Sep 4, 2015

Fixed indeed, thanks folks!

@timstoop
Copy link

Apologies for using this ticket to request support, but I'm looking for a way to actually use this. How would you use an aws_eip in combination with a launch configuration for an autoscaling group?

@ghost
Copy link

ghost commented Apr 22, 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 Apr 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants