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

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

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