Commit 238f8625 authored by drechsau's avatar drechsau

initial commits are fun

parents
.DS_Store
terraform.tfstate*
terraform.tfstate
./*.tfstate
.terraform/
*.plan
.idea
*.swp
~*
build/*
!build/.keep
inventory/vagrant
inventory/groups
.vagrant/
*.retry
roles/*
# drone-deploy
region = "us-east-2"
the_vpc_id = "${module.vpc.vpc_id}"
provider "aws" {
region = "${var.region}"
}
variable "owner" {
default = "mike@geeks.org"
}
variable "name" {
default = "drone-deploy"
}
variable "region" {
default = "us-east-2"
}
variable "first-2-octets" {
default = "172.17"
}
variable "azs" {
description = "availablity zones"
default = [
"us-east-2a",
"us-east-2b",
"us-east-2c",
]
}
variable "mikeh-home" {
default = "24.118.241.40/32"
}
### also see modules.tf as we need to match up for public route tables as well
#variable "private_propagating_vgws_1" {
# default = "vgw-004d951e"
#}
terraform {
backend "s3" {
bucket = "geeks-terraform"
key = "drone-deploy/vpc/terraform.tfstate"
region = "us-east-2"
#dynamodb_table = "geeks-tf-state"
}
}
# varaibles below come out of the base variables.tf file
module "vpc" {
# downlaod the module - use 'terraform get' to download
# use 'terraform get -update' to update
# but it kind of sucks
#source = "github.com/terraform-community-modules/tf_aws_vpc"
source = "git::https://grot.geeks.org/tf/tf_aws_vpc.git"
# this is used throughout to name resources
name = "drone-deploy"
product = "drone-deploy"
owner = "mike@geeks.org"
env = "prod"
# base CIDR for the VPC
cidr = "${var.first-2-octets}.0.0/16"
#private_propagating_vgws = ["vgw-004d951e"]
#public_propagating_vgws = ["vgw-004d951e"]
enable_nat_gateway = "true"
azs = ["${var.azs}"]
}
#resource "aws_security_group" "web_inbound_sg" {
# name = "web_inbound_sg"
# description = "Allow HTTP/HTTPS - Global"
# vpc_id = "${module.vpc.vpc_id}"
#
# ingress {
# from_port = 80
# to_port = 80
# protocol = "tcp"
# cidr_blocks = ["0.0.0.0/0"]
# }
#
# ingress {
# from_port = 443
# to_port = 443
# protocol = "tcp"
# cidr_blocks = ["0.0.0.0/0"]
# }
#
# egress {
# from_port = 0
# to_port = 0
# protocol = "-1"
# cidr_blocks = ["0.0.0.0/0"]
# }
#
# tags {
# Name = "web_inbound_sg"
# }
#}
../terraform.tfvars
\ No newline at end of file
../variables.tf
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment