Commit 2164d6eb authored by Cameron McFarland's avatar Cameron McFarland

Updating references to the new security group in the launch configs.

parent 82c31844
......@@ -238,9 +238,9 @@ resource "aws_route_table_association" "snowplow_route_table_association_3" {
// Security Groups
resource "aws_security_group" "snowplow_security_group" {
description = "For testing snowplow stuff"
name = "SnowPlowTesting"
vpc_id = "${aws_vpc.snowplow_vpc.id}"
description = "For testing snowplow stuff"
name = "SnowPlowTesting"
vpc_id = "${aws_vpc.snowplow_vpc.id}"
ingress {
from_port = 8000
......@@ -393,8 +393,6 @@ data "aws_ami" "amazonlinux2" {
owners = ["137112412989"] # Amazon Images
}
// Security Groups
resource "aws_launch_configuration" "snowplow_collector_launch_config" {
image_id = "${data.aws_ami.amazonlinux2.id}"
instance_type = "t2.micro"
......@@ -403,7 +401,7 @@ resource "aws_launch_configuration" "snowplow_collector_launch_config" {
iam_instance_profile = "snowplow-collector-role"
security_groups = [
"sg-0270f6c10c30d8bf3",
"${aws_security_group.snowplow_security_group.id}",
]
user_data = <<EOUD
......@@ -540,7 +538,7 @@ resource "aws_launch_configuration" "snowplow_enricher_launch_config" {
iam_instance_profile = "snowplow-enricher-role"
security_groups = [
"sg-0270f6c10c30d8bf3",
"${aws_security_group.snowplow_security_group.id}",
]
user_data = <<EOUD
......@@ -652,7 +650,7 @@ resource "aws_launch_configuration" "snowplow_s3loader_launch_config" {
iam_instance_profile = "snowplow-s3loader-role"
security_groups = [
"sg-0270f6c10c30d8bf3",
"${aws_security_group.snowplow_security_group.id}",
]
user_data = <<EOUD
......
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