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

v0.3.7 AWS instance resource: source_dest_check not set appropriately #1160

Closed
DoctorVin opened this issue Mar 8, 2015 · 3 comments
Closed

Comments

@DoctorVin
Copy link

All AWS instances I deploy with Terraform 0.3.7 have the "Source/dest. check" property set to true, regardless of the value set in the specification file. I am defining a typical AWS NAT instance as follows:

resource "aws_instance" "nat" {
ami = "${lookup(var.amis, var.region)}"
instance_type = "t2.micro"
subnet_id = "${aws_subnet.public.id}"
security_groups = ["${aws_security_group.default.id}", "${aws_security_group.nat.id}"]
key_name = "${aws_key_pair.deployer.key_name}"
source_dest_check = false
tags {
Name = "src-dst"
}
connection {
user = "ubuntu"
key_file = "ssh/insecure_deployer"
}
provisioner "remote-exec" {
inline = [
"sudo iptables -t nat -A POSTROUTING -j MASQUERADE",
"sudo sysctl -w net.ipv4.ip_forward=1"
]
}
}

@mitchellh
Copy link
Contributor

This is fixed in master, we'll have a relase out soon!

@DoctorVin
Copy link
Author

Awesome! Thanks!

@ghost
Copy link

ghost commented May 4, 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 4, 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

No branches or pull requests

2 participants