Skip to content

Commit

Permalink
fixed checkov errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kunduso committed Dec 12, 2023
1 parent c5cedd4 commit c85f861
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ resource "aws_instance" "app-server-read" {
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
root_block_device {
encrypted = true
}
tags = {
Name = "app-4-server-read"
}
Expand All @@ -68,6 +73,11 @@ resource "aws_instance" "app-server-write" {
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
root_block_device {
encrypted = true
}
tags = {
Name = "app-4-server-write"
}
Expand Down

0 comments on commit c85f861

Please sign in to comment.