Skip to content

Commit

Permalink
Merge pull request #46 from kunduso/use-vpc-module
Browse files Browse the repository at this point in the history
Place EC2 instance in correct subnet
  • Loading branch information
kunduso authored Nov 19, 2024
2 parents 6bdc4e9 + 0d5dac3 commit c531a55
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 c531a55

Please sign in to comment.