Skip to content

Commit

Permalink
corrected ec2 subnet #45
Browse files Browse the repository at this point in the history
  • Loading branch information
kunduso committed Nov 19, 2024
1 parent 06d54de commit 0d5dac3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ resource "aws_instance" "app-server-read" {
iam_instance_profile = aws_iam_instance_profile.ec2_profile.name
associate_public_ip_address = true
#checkov:skip=CKV_AWS_88: Required for Session Manager access
subnet_id = module.vpc.private_subnets[0].id
subnet_id = module.vpc.public_subnets[0].id
ebs_optimized = true
monitoring = true
root_block_device {
Expand Down Expand Up @@ -77,7 +77,7 @@ resource "aws_instance" "app-server-write" {
iam_instance_profile = aws_iam_instance_profile.ec2_profile.name
associate_public_ip_address = true
#checkov:skip=CKV_AWS_88: Required for Session Manager access
subnet_id = module.vpc.private_subnets[0].id
subnet_id = module.vpc.public_subnets[0].id
ebs_optimized = true
monitoring = true
root_block_device {
Expand Down

0 comments on commit 0d5dac3

Please sign in to comment.