github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/avd_docs/aws/ec2/AVD-AWS-0164/Terraform.md (about) 1 2 Set the instance to not be publicly accessible 3 4 ```hcl 5 resource "aws_subnet" "good_example" { 6 vpc_id = "vpc-123456" 7 map_public_ip_on_launch = false 8 } 9 10 ``` 11 12 #### Remediation Links 13 - https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/subnet#map_public_ip_on_launch 14