Terraform

Terraform

Made by DeepSource

A resource has a public IP address TF-AWS012

Security
Major

You should limit the provision of public IP addresses for resources.

Resources should not be exposed on the public internet, but should have access limited to consumers required for the function of your application.

Examples

Bad practice

resource "aws_launch_configuration" "my-resource" {
    associate_public_ip_address = true
}

Recommended

resource "aws_launch_configuration" "my-resource" {
    associate_public_ip_address = false
}