File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
operations/deployment/terraform Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
resource "aws_security_group" "pg_security_group" {
2
2
count = var. aws_enable_postgres == " true" ? 1 : 0
3
- name = var. aws_security_group_name_pg
3
+ name = var. aws_security_group_name_pg != " " ? var . aws_security_group_name_pg : " SG for ${ var . aws_resource_identifier } - PG "
4
4
description = " SG for ${ var . aws_resource_identifier } - PG"
5
5
egress {
6
6
from_port = 0
Original file line number Diff line number Diff line change 1
1
resource "aws_security_group" "ec2_security_group" {
2
- name = var. security_group_name
2
+ name = var. security_group_name != " " ? var . security_group_name : " SG for ${ var . aws_resource_identifier } - EC2 "
3
3
description = " SG for ${ var . aws_resource_identifier } "
4
4
vpc_id = data. aws_vpc . default . id
5
5
egress {
Original file line number Diff line number Diff line change @@ -61,12 +61,12 @@ variable "ec2_volume_size" {
61
61
62
62
variable "security_group_name" {
63
63
type = string
64
- default = " SG for deployment "
64
+ default = " "
65
65
description = " Name of the security group to use"
66
66
}
67
67
variable "aws_security_group_name_pg" {
68
68
type = string
69
- default = " SG for postgres deployment "
69
+ default = " "
70
70
description = " Name of the security group to use for postgres"
71
71
}
72
72
variable "ec2_iam_instance_profile" {
You can’t perform that action at this time.
0 commit comments