Chris Mague 056b624a6c update to be compatable after 0.13 | 4 лет назад | |
---|---|---|
test | 4 лет назад | |
.gitignore | 5 лет назад | |
.terraform-version | 4 лет назад | |
README.md | 4 лет назад | |
main.tf | 5 лет назад | |
outputs.tf | 5 лет назад | |
private_subnets.tf | 4 лет назад | |
public_subnets.tf | 5 лет назад | |
variables.tf | 5 лет назад | |
versions.tf | 5 лет назад | |
vpc.tf | 5 лет назад |
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
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"
}
}