github.com/aquasecurity/trivy-iac@v0.8.1-0.20240127024015-3d8e412cf0ab/avd_docs/aws/ec2/AVD-AWS-0009/Terraform.md (about)

     1  
     2  Set the instance to not be publicly accessible
     3  
     4  ```hcl
     5   resource "aws_launch_configuration" "good_example" {
     6   	associate_public_ip_address = false
     7   }
     8   
     9  ```
    10  
    11  #### Remediation Links
    12   - https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/launch_configuration#associate_public_ip_address
    13  
    14   - https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance#associate_public_ip_address
    15