Skip to content

Instantly share code, notes, and snippets.

View three.tf
resource "aws_route_table_association" "lb" {
subnet_id = aws_subnet.lb.id
route_table_id = aws_route_table.public.id
}
resource "aws_subnet" "lb_other_subnet" {
vpc_id = aws_vpc.vpc.id
cidr_block = "10.0.200.0/24"
availability_zone = "us-east-1b"
tags = {
View two.tf
resource "aws_eip" "nateip" {
vpc = true
}
resource "aws_nat_gateway" "gw" {
allocation_id = aws_eip.nateip.id
subnet_id = aws_subnet.nat.id
tags = {
Name = "oauthexample_natgw"
}
View two.tf
resource "aws_eip" "nateip" {
vpc = true
}
resource "aws_nat_gateway" "gw" {
allocation_id = aws_eip.nateip.id
subnet_id = aws_subnet.nat.id
tags = {
Name = "oauthexample_natgw"
}
View one.tf
provider "aws" {
region = "us-east-1"
}
resource "aws_vpc" "vpc" {
cidr_block = "10.0.0.0/16"
tags = {
Name = "oauthexample"
}
}
View gist:30cbb9bd767b368296e7
#!/bin/bash
today="$(date +%F)"
the_script="$0"
the_script=${the_script%.*}
the_script=${the_script##*/}
exec > >(tee -i "${the_script}.${today}.log")
exec 2>&1
ls