File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ resource "aws_instance" "app-server-read" {
48
48
iam_instance_profile = aws_iam_instance_profile. ec2_profile . name
49
49
associate_public_ip_address = true
50
50
# checkov:skip=CKV_AWS_88: Required for Session Manager access
51
- subnet_id = module. vpc . private_subnets [0 ]. id
51
+ subnet_id = module. vpc . public_subnets [0 ]. id
52
52
ebs_optimized = true
53
53
monitoring = true
54
54
root_block_device {
@@ -77,7 +77,7 @@ resource "aws_instance" "app-server-write" {
77
77
iam_instance_profile = aws_iam_instance_profile. ec2_profile . name
78
78
associate_public_ip_address = true
79
79
# checkov:skip=CKV_AWS_88: Required for Session Manager access
80
- subnet_id = module. vpc . private_subnets [0 ]. id
80
+ subnet_id = module. vpc . public_subnets [0 ]. id
81
81
ebs_optimized = true
82
82
monitoring = true
83
83
root_block_device {
You can’t perform that action at this time.
0 commit comments