Commit c5da8b77 authored by Cameron McFarland's avatar Cameron McFarland

Up-to-date state so far.

parent 32daca8b
......@@ -11,7 +11,7 @@ provider "aws" {
// Policies
resource "aws_iam_policy" "snowplow_collector_policy" {
description = "Policy that allows the collector to access other AWS services such as Kinesis and Cloudwatch."
description = "Policy the allows the collector to access other AWS services such as Kinesis."
name = "snowplow-collector-policy"
path = "/"
policy = <<EOF
......@@ -44,7 +44,7 @@ EOF
}
resource "aws_iam_policy" "snowplow_enricher_policy" {
description = "Policy that allows the enricher to access other AWS services such as Kinesis and Cloudwatch."
description = ""
name = "snowplow-enricher-policy"
path = "/"
policy = <<EOF
......@@ -87,7 +87,7 @@ EOF
}
resource "aws_iam_policy" "snowplow_s3loader_policy" {
description = "Policy that allows the s3loader to access other AWS services such as Kinesis and Cloudwatch."
description = "Policy to provide AWS access to snowplow s3loader instances such as S3, DynamoDB, and Kinesis."
name = "snowplow-s3loader-policy"
path = "/"
policy = <<EOF
......@@ -193,17 +193,38 @@ resource "aws_internet_gateway" "snowplow_gw" {
resource "aws_route_table" "snowplow_route_table" {
vpc_id = "${aws_vpc.snowplow_vpc.id}"
route {
cidr_block = "0.0.0.0/0"
gateway_id = "${aws_internet_gateway.snowplow_gw.id}"
}
tags = {
Name = "SnowPlow Routing Table"
environment = "SnowPlow"
}
}
resource "aws_main_route_table_association" "snowplow_main_route_table_association" {
vpc_id = "${aws_vpc.snowplow_vpc.id}"
route_table_id = "${aws_route_table.snowplow_route_table.id}"
}
resource "aws_route" "snowplow_route" {
route_table_id = "${aws_route_table.snowplow_route_table.id}"
destination_cidr_block = "0.0.0.0/0"
gateway_id = "${aws_internet_gateway.snowplow_gw.id}"
}
resource "aws_route_table_association" "snowplow_route_table_association_1" {
route_table_id = "${aws_route_table.snowplow_route_table.id}"
subnet_id = "${aws_subnet.snowplow_subnet_1.id}"
}
resource "aws_route_table_association" "snowplow_route_table_association_2" {
route_table_id = "${aws_route_table.snowplow_route_table.id}"
subnet_id = "${aws_subnet.snowplow_subnet_2.id}"
}
resource "aws_route_table_association" "snowplow_route_table_association_3" {
route_table_id = "${aws_route_table.snowplow_route_table.id}"
subnet_id = "${aws_subnet.snowplow_subnet_3.id}"
}
// Kinesis Streams
resource "aws_kinesis_stream" "snowplow_raw_good" {
name = "snowplow-raw-good"
......
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