Skip to content

Instantly share code, notes, and snippets.

@snehaso
Created January 19, 2015 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snehaso/6a530b01a37090473169 to your computer and use it in GitHub Desktop.
Save snehaso/6a530b01a37090473169 to your computer and use it in GitHub Desktop.
terraform.tf
resource "aws_instance" "nat" {
ami = "${var.aws_nat_ami}"
availability_zone = "us-east-1b"
instance_type = "m1.small"
key_name = "${var.aws_key_name}"
security_groups = ["${aws_security_group.nat.id}"]
subnet_id = "${aws_subnet.us-east-1b-public.id}"
associate_public_ip_address = true
source_dest_check = false
}
resource "aws_subnet" "us-east-1b-public" {
vpc_id = "${aws_vpc.nat-vpc.id}"
cidr_block = "10.0.0.0/24"
availability_zone = "us-east-1b"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment