File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ data "aws_ami" "red_ami" {
3535# Justification: This is meant to be a public instance, hence the open ingress rules
3636# trivy:ignore:AVD-AWS-0099
3737# trivy:ignore:AVD-AWS-0104
38- resource "aws_security_group" "allow_ssh " {
38+ resource "aws_security_group" "red_sg " {
3939 vpc_id = var. create_vpc ? aws_vpc. main [0 ]. id : var. vpc_id
4040 name = " ${ lower (var. instance_name )} -ingress-sg"
4141
@@ -73,7 +73,7 @@ resource "aws_instance" "red-instance" {
7373 ami = data. aws_ami . red_ami . id
7474 instance_type = var. instance_type
7575 subnet_id = var. create_vpc ? aws_subnet. public [0 ]. id : var. subnet_id
76- vpc_security_group_ids = [aws_security_group . allow_ssh . id ]
76+ vpc_security_group_ids = [aws_security_group . red_sg . id ]
7777 key_name = var. create_ec2_key_pair ? aws_key_pair. red_key [0 ]. key_name : null
7878 disable_api_termination = var. disable_api_termination
7979 disable_api_stop = var. disable_api_stop
You can’t perform that action at this time.
0 commit comments