Commit 82c31844 authored by Cameron McFarland's avatar Cameron McFarland

Adding a security group. And downgrading the AWS provider version.

parent 15456fac
......@@ -10,7 +10,7 @@ terraform {
// Use credentials from environment or shared credentials file
provider "aws" {
region = "us-east-1"
version = "~> 2.00"
version = "~> 1.41"
}
// Policies
......@@ -236,6 +236,70 @@ resource "aws_route_table_association" "snowplow_route_table_association_3" {
subnet_id = "${aws_subnet.snowplow_subnet_3.id}"
}
// Security Groups
resource "aws_security_group" "snowplow_security_group" {
description = "For testing snowplow stuff"
name = "SnowPlowTesting"
vpc_id = "${aws_vpc.snowplow_vpc.id}"
ingress {
from_port = 8000
to_port = 8000
protocol = "tcp"
description = "Collector"
cidr_blocks = [
"0.0.0.0/0",
]
ipv6_cidr_blocks = [
"::/0",
]
}
ingress {
from_port = 8080
to_port = 8080
protocol = "tcp"
description = "Enricher"
cidr_blocks = [
"0.0.0.0/0",
]
ipv6_cidr_blocks = [
"::/0",
]
}
ingress {
from_port = 22
to_port = 22
protocol = "tcp"
description = "SSH for Admin IPv4"
cidr_blocks = [
"0.0.0.0/0",
]
}
ingress {
from_port = 22
to_port = 22
protocol = "tcp"
description = "SSH for Admin IPv6"
ipv6_cidr_blocks = [
"::/0",
]
}
tags = {
environment = "SnowPlow"
Name = "SnowPlowTesting"
}
}
// 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