Skip to content

Commit 98bb416

Browse files
authored
Fix SG naming issue (#118)
* Fixes
1 parent 4e5dba9 commit 98bb416

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

operations/_scripts/generate/generate_tf_vars.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ lb_healthcheck=$(generate_var lb_healthcheck $LB_HEALTHCHECK)
100100
#-- Logging --#
101101
lb_access_bucket_name=$(generate_var lb_access_bucket_name $LB_LOGS_BUCKET)
102102
#-- Security Groups --#
103-
security_group_name=$(generate_var security_group_name $SECURITY_GROUP_NAME)
103+
#security_group_name=$(generate_var security_group_name $SECURITY_GROUP_NAME) - Fixed
104104
#-- EC2 --#
105105
ec2_instance_type=$(generate_var ec2_instance_type $EC2_INSTANCE_TYPE)
106106
# ec2_iam_instance_profile=$(generate_var ec2_iam_instance_profile EC2_INSTANCE_PROFILE - Special case

operations/deployment/terraform/postgres.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
resource "aws_security_group" "pg_security_group" {
22
count = var.aws_enable_postgres == "true" ? 1 : 0
3-
name = var.aws_security_group_name_pg != "" ? var.aws_security_group_name_pg : "SG for ${var.aws_resource_identifier} - PG"
3+
name = var.aws_security_group_name_pg
44
description = "SG for ${var.aws_resource_identifier} - PG"
55
egress {
66
from_port = 0

operations/deployment/terraform/security-group.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
resource "aws_security_group" "ec2_security_group" {
2-
name = var.security_group_name != "" ? var.security_group_name : "SG for ${var.aws_resource_identifier} - EC2"
2+
name = var.aws_resource_identifier
33
description = "SG for ${var.aws_resource_identifier}"
44
vpc_id = data.aws_vpc.default.id
55
egress {

0 commit comments

Comments
 (0)