Skip to content

Commit

Permalink
Added support for logsearch network
Browse files Browse the repository at this point in the history
  • Loading branch information
geofffranks committed Jul 17, 2015
1 parent 81f003c commit a502888
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions aws-cf.tf
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,23 @@ output "aws_subnet_docker_availability_zone" {
value = "${aws_subnet.docker.availability_zone}"
}

resource "aws_subnet" "logsearch" {
vpc_id = "${var.aws_vpc_id}"
cidr_block = "${var.network}.${var.offset}7.0/24"
availability_zone = "${aws_subnet.lb.availability_zone}"
tags {
Name = "logsearch"
}
}

output "aws_subnet_logsearch_id" {
value = "${aws_subnet.logsearch.id}"
}

output "aws_subnet_logsearch_availability_zone" {
value = "${aws_subnet.logsearch.availability_zone}"
}

# Routing table for private subnets

resource "aws_route_table_association" "cfruntime-2a-private" {
Expand All @@ -109,6 +126,11 @@ resource "aws_route_table_association" "docker" {
route_table_id = "${var.aws_route_table_private_id}"
}

resource "aws_route_table_association" "logsearch" {
subnet_id = "${aws_subnet.logsearch.id}"
route_table_id = "${var.aws_route_table_private_id}"
}

resource "aws_security_group" "cf" {
name = "cf-${var.offset}-${var.aws_vpc_id}"
description = "CF security groups"
Expand Down Expand Up @@ -211,3 +233,6 @@ output "aws_lb_cidr" {
output "aws_docker_cidr" {
value = "${aws_subnet.docker.cidr_block}"
}
output "aws_logsearch_cidr" {
value = "${aws_subnet.logsearch.cidr_block}"
}

0 comments on commit a502888

Please sign in to comment.