Skip to content

Commit

Permalink
checkov scan fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kunduso committed Dec 13, 2023
1 parent 8bdba86 commit 0ff737b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ resource "aws_instance" "app-server-read" {
vpc_security_group_ids = [aws_security_group.ec2_instance.id]
iam_instance_profile = aws_iam_instance_profile.ec2_profile.name
associate_public_ip_address = true
subnet_id = aws_subnet.public[0].id
ebs_optimized = true
monitoring = true
#checkov:skip=CKV_AWS_88: Required for Session Manager access
subnet_id = aws_subnet.public[0].id
ebs_optimized = true
monitoring = true
root_block_device {
encrypted = true
}
Expand All @@ -76,9 +77,10 @@ resource "aws_instance" "app-server-write" {
vpc_security_group_ids = [aws_security_group.ec2_instance.id]
iam_instance_profile = aws_iam_instance_profile.ec2_profile.name
associate_public_ip_address = true
subnet_id = aws_subnet.public[0].id
ebs_optimized = true
monitoring = true
#checkov:skip=CKV_AWS_88: Required for Session Manager access
subnet_id = aws_subnet.public[0].id
ebs_optimized = true
monitoring = true
root_block_device {
encrypted = true
}
Expand Down

0 comments on commit 0ff737b

Please sign in to comment.