Skip to content

Commit 0ff737b

Browse files
committed
checkov scan fix
1 parent 8bdba86 commit 0ff737b

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

ec2.tf

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ resource "aws_instance" "app-server-read" {
4949
vpc_security_group_ids = [aws_security_group.ec2_instance.id]
5050
iam_instance_profile = aws_iam_instance_profile.ec2_profile.name
5151
associate_public_ip_address = true
52-
subnet_id = aws_subnet.public[0].id
53-
ebs_optimized = true
54-
monitoring = true
52+
#checkov:skip=CKV_AWS_88: Required for Session Manager access
53+
subnet_id = aws_subnet.public[0].id
54+
ebs_optimized = true
55+
monitoring = true
5556
root_block_device {
5657
encrypted = true
5758
}
@@ -76,9 +77,10 @@ resource "aws_instance" "app-server-write" {
7677
vpc_security_group_ids = [aws_security_group.ec2_instance.id]
7778
iam_instance_profile = aws_iam_instance_profile.ec2_profile.name
7879
associate_public_ip_address = true
79-
subnet_id = aws_subnet.public[0].id
80-
ebs_optimized = true
81-
monitoring = true
80+
#checkov:skip=CKV_AWS_88: Required for Session Manager access
81+
subnet_id = aws_subnet.public[0].id
82+
ebs_optimized = true
83+
monitoring = true
8284
root_block_device {
8385
encrypted = true
8486
}

0 commit comments

Comments
 (0)