From 9fb8f81d911ed2b8ae7c765e9995481044d84493 Mon Sep 17 00:00:00 2001 From: Allan Denot Date: Wed, 27 Oct 2021 08:00:01 +1100 Subject: [PATCH] Adding tags to help retrieving SG from other stacks (#10) * Adding tags to help retrieving SG from other stacks * terraform fmt --- sg.tf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sg.tf b/sg.tf index 57f095a..00b375f 100644 --- a/sg.tf +++ b/sg.tf @@ -3,6 +3,13 @@ resource "aws_security_group" "default" { name_prefix = "${var.name}-Client-VPN" description = "security group allowing egress for client-vpn users" vpc_id = var.vpc_id + + tags = { + Name = "${var.name}-Client-VPN" + EnvName = var.name + Service = "client-vpn" + TerraformWorkspace = terraform.workspace + } } resource "aws_security_group_rule" "default_egress_world" {