Skip to content

Commit c85f861

Browse files
committed
fixed checkov errors
1 parent c5cedd4 commit c85f861

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ec2.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ resource "aws_instance" "app-server-read" {
5050
iam_instance_profile = aws_iam_instance_profile.ec2_profile.name
5151
associate_public_ip_address = true
5252
subnet_id = aws_subnet.public[0].id
53+
ebs_optimized = true
54+
monitoring = true
55+
root_block_device {
56+
encrypted = true
57+
}
5358
tags = {
5459
Name = "app-4-server-read"
5560
}
@@ -68,6 +73,11 @@ resource "aws_instance" "app-server-write" {
6873
iam_instance_profile = aws_iam_instance_profile.ec2_profile.name
6974
associate_public_ip_address = true
7075
subnet_id = aws_subnet.public[0].id
76+
ebs_optimized = true
77+
monitoring = true
78+
root_block_device {
79+
encrypted = true
80+
}
7181
tags = {
7282
Name = "app-4-server-write"
7383
}

0 commit comments

Comments
 (0)