Commit fa3e8421 authored by drechsau's avatar drechsau

refactor to only use us-east-a AZ for now

parent 27a19cc6
output "sn-drone-deploy-mgmt-a" {
value = "${aws_subnet.drone-deploy-mgmt-a.id}"
}
output "sn-drone-deploy-mgmt-a-cidr" {
value = "${aws_subnet.drone-deploy-mgmt-a.cidr_block}"
}
output "sn-elb-a" {
value = "${aws_subnet.elb-a.id}"
}
output "sn-efs-a" {
value = "${aws_subnet.efs-a.id}"
}
output "sn-databases-a" {
value = "${aws_subnet.databases-a.id}"
}
output "sn-elasticache-a" {
value = "${aws_subnet.elasticache-a.id}"
}
output "sn-docker-pub-a" {
value = "${aws_subnet.docker-pub-a.id}"
}
output "sn-docker-priv-a" {
value = "${aws_subnet.docker-priv-a.id}"
}
output "sn-app-a" {
value = "${aws_subnet.app-a.id}"
}
output "sn-admin-a" {
value = "${aws_subnet.admin-a.id}"
}
output "sn-cmgmt-a" {
value = "${aws_subnet.cmgmt-a.id}"
}
#!# output "sn-drone-deploy-mgmt-b" {
#!# value = "${aws_subnet.drone-deploy-mgmt-b.id}"
#!# }
#!#
#!# output "sn-drone-deploy-mgmt-b-cidr" {
#!# value = "${aws_subnet.drone-deploy-mgmt-b.cidr_block}"
#!# }
#!#
#!# output "sn-elb-b" {
#!# value = "${aws_subnet.elb-b.id}"
#!# }
#!#
#!# output "sn-efs-b" {
#!# value = "${aws_subnet.efs-b.id}"
#!# }
#!#
#!# output "sn-databases-b" {
#!# value = "${aws_subnet.databases-b.id}"
#!# }
#!#
#!# output "sn-elasticache-b" {
#!# value = "${aws_subnet.elasticache-b.id}"
#!# }
#!#
#!# output "sn-docker-pub-b" {
#!# value = "${aws_subnet.docker-pub-b.id}"
#!# }
#!#
#!# output "sn-docker-priv-b" {
#!# value = "${aws_subnet.docker-priv-b.id}"
#!# }
#!#
#!# output "sn-app-b" {
#!# value = "${aws_subnet.app-b.id}"
#!# }
#!#
#!# output "sn-admin-b" {
#!# value = "${aws_subnet.admin-b.id}"
#!# }
#!#
#!# output "sn-cmgmt-b" {
#!# value = "${aws_subnet.cmgmt-b.id}"
#!# }
#!#
#!# output "sn-drone-deploy-mgmt-c" {
#!# value = "${aws_subnet.drone-deploy-mgmt-c.id}"
#!# }
#!#
#!# output "sn-drone-deploy-mgmt-c-cidr" {
#!# value = "${aws_subnet.drone-deploy-mgmt-c.cidr_block}"
#!# }
#!#
#!# output "sn-elb-c" {
#!# value = "${aws_subnet.elb-c.id}"
#!# }
#!#
#!# output "sn-efs-c" {
#!# value = "${aws_subnet.efs-c.id}"
#!# }
#!#
#!# output "sn-databases-c" {
#!# value = "${aws_subnet.databases-c.id}"
#!# }
#!#
#!# output "sn-elasticache-c" {
#!# value = "${aws_subnet.elasticache-c.id}"
#!# }
#!#
#!# output "sn-docker-pub-c" {
#!# value = "${aws_subnet.docker-pub-c.id}"
#!# }
#!#
#!# output "sn-docker-priv-c" {
#!# value = "${aws_subnet.docker-priv-c.id}"
#!# }
#!#
#!# output "sn-app-c" {
#!# value = "${aws_subnet.app-c.id}"
#!# }
#!#
#!# output "sn-admin-c" {
#!# value = "${aws_subnet.admin-c.id}"
#!# }
#!#
#!# output "sn-cmgmt-c" {
#!# value = "${aws_subnet.cmgmt-c.id}"
#!# }
#!#
# the fun begins
# drone-deploy managment for whole VPC
resource "aws_subnet" "drone-deploy-mgmt-a" {
vpc_id = "${module.vpc.vpc_id}"
cidr_block = "${var.first-2-octets}.1.0/24"
availability_zone = "${var.azs[0]}"
map_public_ip_on_launch = false
tags {
Name = "drone-deploy-mgmt-a-${var.azs[0]}"
}
}
resource "aws_subnet" "elb-a" {
vpc_id = "${module.vpc.vpc_id}"
cidr_block = "${var.first-2-octets}.16.0/24"
availability_zone = "${var.azs[0]}"
map_public_ip_on_launch = false
tags {
Name = "elb-a-${var.azs[0]}"
}
}
resource "aws_subnet" "efs-a" {
vpc_id = "${module.vpc.vpc_id}"
cidr_block = "${var.first-2-octets}.32.0/24"
availability_zone = "${var.azs[0]}"
map_public_ip_on_launch = false
tags {
Name = "efs-a-${var.azs[0]}"
}
}
resource "aws_subnet" "databases-a" {
vpc_id = "${module.vpc.vpc_id}"
cidr_block = "${var.first-2-octets}.48.0/24"
availability_zone = "${var.azs[0]}"
map_public_ip_on_launch = false
tags {
Name = "databases-a-${var.azs[0]}"
}
}
resource "aws_subnet" "elasticache-a" {
vpc_id = "${module.vpc.vpc_id}"
cidr_block = "${var.first-2-octets}.64.0/24"
availability_zone = "${var.azs[0]}"
map_public_ip_on_launch = false
tags {
Name = "elasticache-a-${var.azs[0]}"
}
}
resource "aws_subnet" "docker-pub-a" {
vpc_id = "${module.vpc.vpc_id}"
cidr_block = "${var.first-2-octets}.80.0/24"
availability_zone = "${var.azs[0]}"
map_public_ip_on_launch = false
tags {
Name = "docker-pub-a-${var.azs[0]}"
}
}
resource "aws_subnet" "docker-priv-a" {
vpc_id = "${module.vpc.vpc_id}"
cidr_block = "${var.first-2-octets}.96.0/24"
availability_zone = "${var.azs[0]}"
map_public_ip_on_launch = false
tags {
Name = "docker-priv-a-${var.azs[0]}"
}
}
resource "aws_subnet" "app-a" {
vpc_id = "${module.vpc.vpc_id}"
cidr_block = "${var.first-2-octets}.112.0/24"
availability_zone = "${var.azs[0]}"
map_public_ip_on_launch = false
tags {
Name = "app-a-${var.azs[0]}"
}
}
resource "aws_subnet" "admin-a" {
vpc_id = "${module.vpc.vpc_id}"
cidr_block = "${var.first-2-octets}.128.0/24"
availability_zone = "${var.azs[0]}"
map_public_ip_on_launch = false
tags {
Name = "admin-a-${var.azs[0]}"
}
}
resource "aws_subnet" "elb-admin-a" {
vpc_id = "${module.vpc.vpc_id}"
cidr_block = "${var.first-2-octets}.144.0/24"
availability_zone = "${var.azs[0]}"
map_public_ip_on_launch = false
tags {
Name = "elb-admin-a-${var.azs[0]}"
}
}
resource "aws_subnet" "elb-client-a" {
vpc_id = "${module.vpc.vpc_id}"
cidr_block = "${var.first-2-octets}.160.0/24"
availability_zone = "${var.azs[0]}"
map_public_ip_on_launch = false
tags {
Name = "elb-client-a-${var.azs[0]}"
}
}
resource "aws_subnet" "cmgmt-a" {
vpc_id = "${module.vpc.vpc_id}"
cidr_block = "${var.first-2-octets}.240.0/24"
availability_zone = "${var.azs[0]}"
map_public_ip_on_launch = false
tags {
Name = "cmgmt-a-${var.azs[0]}"
}
}
#!# # the fun begins
#!#
#!# # drone-deploy managment for whole VPC
#!#
#!# resource "aws_subnet" "drone-deploy-mgmt-b" {
#!# vpc_id = "${module.vpc.vpc_id}"
#!#
#!# cidr_block = "${var.first-2-octets}.2.0/24"
#!#
#!# availability_zone = "${var.azs[1]}"
#!#
#!# map_public_ip_on_launch = false
#!#
#!# tags {
#!# Name = "drone-deploy-mgmt-b-${var.azs[1]}"
#!# }
#!# }
#!#
#!# resource "aws_subnet" "elb-b" {
#!# vpc_id = "${module.vpc.vpc_id}"
#!#
#!# cidr_block = "${var.first-2-octets}.17.0/24"
#!#
#!# availability_zone = "${var.azs[1]}"
#!#
#!# map_public_ip_on_launch = false
#!#
#!# tags {
#!# Name = "elb-b-${var.azs[1]}"
#!# }
#!# }
#!#
#!# resource "aws_subnet" "efs-b" {
#!# vpc_id = "${module.vpc.vpc_id}"
#!#
#!# cidr_block = "${var.first-2-octets}.33.0/24"
#!#
#!# availability_zone = "${var.azs[1]}"
#!#
#!# map_public_ip_on_launch = false
#!#
#!# tags {
#!# Name = "efs-b-${var.azs[1]}"
#!# }
#!# }
#!#
#!# resource "aws_subnet" "databases-b" {
#!# vpc_id = "${module.vpc.vpc_id}"
#!#
#!# cidr_block = "${var.first-2-octets}.49.0/24"
#!#
#!# availability_zone = "${var.azs[1]}"
#!#
#!# map_public_ip_on_launch = false
#!#
#!# tags {
#!# Name = "databases-b-${var.azs[1]}"
#!# }
#!# }
#!#
#!# resource "aws_subnet" "elasticache-b" {
#!# vpc_id = "${module.vpc.vpc_id}"
#!#
#!# cidr_block = "${var.first-2-octets}.65.0/24"
#!#
#!# availability_zone = "${var.azs[1]}"
#!#
#!# map_public_ip_on_launch = false
#!#
#!# tags {
#!# Name = "elasticache-b-${var.azs[1]}"
#!# }
#!# }
#!#
#!# resource "aws_subnet" "docker-pub-b" {
#!# vpc_id = "${module.vpc.vpc_id}"
#!#
#!# cidr_block = "${var.first-2-octets}.81.0/24"
#!#
#!# availability_zone = "${var.azs[1]}"
#!#
#!# map_public_ip_on_launch = false
#!#
#!# tags {
#!# Name = "docker-pub-b-${var.azs[1]}"
#!# }
#!# }
#!#
#!# resource "aws_subnet" "docker-priv-b" {
#!# vpc_id = "${module.vpc.vpc_id}"
#!#
#!# cidr_block = "${var.first-2-octets}.97.0/24"
#!#
#!# availability_zone = "${var.azs[1]}"
#!#
#!# map_public_ip_on_launch = false
#!#
#!# tags {
#!# Name = "docker-priv-b-${var.azs[1]}"
#!# }
#!# }
#!#
#!# resource "aws_subnet" "app-b" {
#!# vpc_id = "${module.vpc.vpc_id}"
#!#
#!# cidr_block = "${var.first-2-octets}.113.0/24"
#!#
#!# availability_zone = "${var.azs[1]}"
#!#
#!# map_public_ip_on_launch = false
#!#
#!# tags {
#!# Name = "app-b-${var.azs[1]}"
#!# }
#!# }
#!#
#!# resource "aws_subnet" "admin-b" {
#!# vpc_id = "${module.vpc.vpc_id}"
#!#
#!# cidr_block = "${var.first-2-octets}.129.0/24"
#!#
#!# availability_zone = "${var.azs[1]}"
#!#
#!# map_public_ip_on_launch = false
#!#
#!# tags {
#!# Name = "admin-b-${var.azs[1]}"
#!# }
#!# }
#!#
#!# resource "aws_subnet" "elb-admin-b" {
#!# vpc_id = "${module.vpc.vpc_id}"
#!#
#!# cidr_block = "${var.first-2-octets}.145.0/24"
#!#
#!# availability_zone = "${var.azs[1]}"
#!#
#!# map_public_ip_on_launch = false
#!#
#!# tags {
#!# Name = "elb-admin-b-${var.azs[1]}"
#!# }
#!# }
#!#
#!# resource "aws_subnet" "elb-client-b" {
#!# vpc_id = "${module.vpc.vpc_id}"
#!#
#!# cidr_block = "${var.first-2-octets}.161.0/24"
#!#
#!# availability_zone = "${var.azs[1]}"
#!#
#!# map_public_ip_on_launch = false
#!#
#!# tags {
#!# Name = "elb-client-b-${var.azs[1]}"
#!# }
#!# }
#!#
#!# resource "aws_subnet" "cmgmt-b" {
#!# vpc_id = "${module.vpc.vpc_id}"
#!#
#!# cidr_block = "${var.first-2-octets}.241.0/24"
#!#
#!# availability_zone = "${var.azs[1]}"
#!#
#!# map_public_ip_on_launch = false
#!#
#!# tags {
#!# Name = "cmgmt-b-${var.azs[1]}"
#!# }
#!# }
#!#
#!# # the fun begins
#!#
#!# # drone-deploy managment for whole VPC
#!#
#!# resource "aws_subnet" "drone-deploy-mgmt-c" {
#!# vpc_id = "${module.vpc.vpc_id}"
#!#
#!# cidr_block = "${var.first-2-octets}.3.0/24"
#!#
#!# availability_zone = "${var.azs[2]}"
#!#
#!# map_public_ip_on_launch = false
#!#
#!# tags {
#!# Name = "drone-deploy-mgmt-c-${var.azs[2]}"
#!# }
#!# }
#!#
#!# resource "aws_subnet" "elb-c" {
#!# vpc_id = "${module.vpc.vpc_id}"
#!#
#!# cidr_block = "${var.first-2-octets}.18.0/24"
#!#
#!# availability_zone = "${var.azs[2]}"
#!#
#!# map_public_ip_on_launch = false
#!#
#!# tags {
#!# Name = "elb-c-${var.azs[2]}"
#!# }
#!# }
#!#
#!# resource "aws_subnet" "efs-c" {
#!# vpc_id = "${module.vpc.vpc_id}"
#!#
#!# cidr_block = "${var.first-2-octets}.34.0/24"
#!#
#!# availability_zone = "${var.azs[2]}"
#!#
#!# map_public_ip_on_launch = false
#!#
#!# tags {
#!# Name = "efs-c-${var.azs[2]}"
#!# }
#!# }
#!#
#!# resource "aws_subnet" "databases-c" {
#!# vpc_id = "${module.vpc.vpc_id}"
#!#
#!# cidr_block = "${var.first-2-octets}.50.0/24"
#!#
#!# availability_zone = "${var.azs[2]}"
#!#
#!# map_public_ip_on_launch = false
#!#
#!# tags {
#!# Name = "databases-c-${var.azs[2]}"
#!# }
#!# }
#!#
#!# resource "aws_subnet" "elasticache-c" {
#!# vpc_id = "${module.vpc.vpc_id}"
#!#
#!# cidr_block = "${var.first-2-octets}.66.0/24"
#!#
#!# availability_zone = "${var.azs[2]}"
#!#
#!# map_public_ip_on_launch = false
#!#
#!# tags {
#!# Name = "elasticache-c-${var.azs[2]}"
#!# }
#!# }
#!#
#!# resource "aws_subnet" "docker-pub-c" {
#!# vpc_id = "${module.vpc.vpc_id}"
#!#
#!# cidr_block = "${var.first-2-octets}.82.0/24"
#!#
#!# availability_zone = "${var.azs[2]}"
#!#
#!# map_public_ip_on_launch = false
#!#
#!# tags {
#!# Name = "docker-pub-c-${var.azs[2]}"
#!# }
#!# }
#!#
#!# resource "aws_subnet" "docker-priv-c" {
#!# vpc_id = "${module.vpc.vpc_id}"
#!#
#!# cidr_block = "${var.first-2-octets}.98.0/24"
#!#
#!# availability_zone = "${var.azs[2]}"
#!#
#!# map_public_ip_on_launch = false
#!#
#!# tags {
#!# Name = "docker-priv-c-${var.azs[2]}"
#!# }
#!# }
#!#
#!# resource "aws_subnet" "app-c" {
#!# vpc_id = "${module.vpc.vpc_id}"
#!#
#!# cidr_block = "${var.first-2-octets}.114.0/24"
#!#
#!# availability_zone = "${var.azs[2]}"
#!#
#!# map_public_ip_on_launch = false
#!#
#!# tags {
#!# Name = "app-c-${var.azs[2]}"
#!# }
#!# }
#!#
#!# resource "aws_subnet" "admin-c" {
#!# vpc_id = "${module.vpc.vpc_id}"
#!#
#!# cidr_block = "${var.first-2-octets}.130.0/24"
#!#
#!# availability_zone = "${var.azs[2]}"
#!#
#!# map_public_ip_on_launch = false
#!#
#!# tags {
#!# Name = "admin-c-${var.azs[2]}"
#!# }
#!# }
#!#
#!# resource "aws_subnet" "elb-admin-c" {
#!# vpc_id = "${module.vpc.vpc_id}"
#!#
#!# cidr_block = "${var.first-2-octets}.146.0/24"
#!#
#!# availability_zone = "${var.azs[2]}"
#!#
#!# map_public_ip_on_launch = false
#!#
#!# tags {
#!# Name = "elb-admin-c-${var.azs[2]}"
#!# }
#!# }
#!#
#!# resource "aws_subnet" "elb-client-c" {
#!# vpc_id = "${module.vpc.vpc_id}"
#!#
#!# cidr_block = "${var.first-2-octets}.162.0/24"
#!#
#!# availability_zone = "${var.azs[2]}"
#!#
#!# map_public_ip_on_launch = false
#!#
#!# tags {
#!# Name = "elb-client-c-${var.azs[2]}"
#!# }
#!# }
#!#
#!# resource "aws_subnet" "cmgmt-c" {
#!# vpc_id = "${module.vpc.vpc_id}"
#!#
#!# cidr_block = "${var.first-2-octets}.242.0/24"
#!#
#!# availability_zone = "${var.azs[2]}"
#!#
#!# map_public_ip_on_launch = false
#!#
#!# tags {
#!# Name = "cmgmt-c-${var.azs[2]}"
#!# }
#!# }
#!#
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