From f746d52ebb4eaf47038513b36cb070a9ef6fdfe0 Mon Sep 17 00:00:00 2001 From: Adam Pike Date: Thu, 17 Feb 2022 20:06:06 -0330 Subject: [PATCH] Fix Terraform example security group Specify the VPC ID in the `service` security group resource block and add a comment. --- aws-ecsfargate-terraform/main.tf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aws-ecsfargate-terraform/main.tf b/aws-ecsfargate-terraform/main.tf index b807f25..3e61ec6 100644 --- a/aws-ecsfargate-terraform/main.tf +++ b/aws-ecsfargate-terraform/main.tf @@ -195,6 +195,8 @@ resource "aws_security_group" "alb" { } resource "aws_security_group" "service" { + # Create a security group for the service + vpc_id = data.aws_vpc.this.id # Only allow traffic from the load balancer security group ingress {