Skip to content

Commit

Permalink
Adding tags to help retrieving SG from other stacks (#10)
Browse files Browse the repository at this point in the history
* Adding tags to help retrieving SG from other stacks

* terraform fmt
  • Loading branch information
adenot authored Oct 26, 2021
1 parent 2ddc435 commit 9fb8f81
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sg.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 9fb8f81

Please sign in to comment.