Keine Beschreibung

Chris Mague 056b624a6c update to be compatable after 0.13 vor 4 Jahren
test d4e98467d6 bump tf version vor 4 Jahren
.gitignore c04e459c48 initial commit vor 5 Jahren
.terraform-version 056b624a6c update to be compatable after 0.13 vor 4 Jahren
README.md f1ec71ae9a add readme information vor 4 Jahren
main.tf 5e0263dfe3 make private network configurable vor 5 Jahren
outputs.tf 7e7a5ab000 siwtch to 1 tier vor 5 Jahren
private_subnets.tf 056b624a6c update to be compatable after 0.13 vor 4 Jahren
public_subnets.tf 7e7a5ab000 siwtch to 1 tier vor 5 Jahren
variables.tf 5e0263dfe3 make private network configurable vor 5 Jahren
versions.tf c04e459c48 initial commit vor 5 Jahren
vpc.tf c04e459c48 initial commit vor 5 Jahren

README.md

A module to build a 2 tier VPC

Prerequisites

  • aws-cli
  • tfenv

Generate Key Pair

aws ec2 create-key-pair --profile redislabs --key-name maguec1 --region us-west-1 \
| jq .KeyMaterial |  awk '{gsub(/\\n/,"\n")}1' | \
sed -e s/\"//g >> ~/.ssh/maguec1.pem

chmod 0600 ~/.ssh/maguec1.pem

This keypair name should match the name of the VPC

Example usage

provider "aws" {
  region  = var.region
  profile = var.profile
}

module "vpc" {
  source         = "git@github.com:shokunin/tfmodule-aws-2tier-vpc?ref=master"
  region         = var.region
  profile        = var.profile
  vpc-name       = var.vpc-name
  vpc-cidr       = var.vpc-cidr
  vpc-azs        = var.vpc-azs
  enable-private = false
  common-tags = {
    "Owner"   = "maguec"
    "Project" = "example_terraform"
  }
}