From 44bb460afcc88a135b531a1ba20741052307c772 Mon Sep 17 00:00:00 2001 From: shockrah Date: Thu, 25 Nov 2021 00:11:51 -0800 Subject: [PATCH] + vpc id to sec groups --- infra/security-groups.tf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/infra/security-groups.tf b/infra/security-groups.tf index e43b098..6a32a49 100644 --- a/infra/security-groups.tf +++ b/infra/security-groups.tf @@ -1,8 +1,9 @@ # Here are general definitions for security rulesets resource "aws_security_group" "basic_web_sec" { - name = "General web server ruleset" + name = "Athens General web server ruleset" description = "Allowing strictly web traffic" + vpc_id = aws_vpc.athens_vpc.id # Intake of web requests(only serving TLS enabled traffic) ingress { cidr_blocks = ["0.0.0.0/0"] @@ -22,6 +23,8 @@ resource "aws_security_group" "basic_web_sec" { } resource "aws_security_group" "internal_ssh_recv" { + name = "Athens Internal SSH RECV" + vpc_id = aws_vpc.athens_vpc.id ingress { cidr_blocks = [var.crete_cidr] from_port = 22 @@ -34,6 +37,8 @@ resource "aws_security_group" "internal_ssh_recv" { # Note this one is kinda special because the dev box # itself is _kinda_ special(?) resource "aws_security_group" "gamma_sec" { + name = "Athens Gamma Sec" + vpc_id = aws_vpc.athens_vpc.id ingress { cidr_blocks = ["0.0.0.0/0"] from_port = 22