AWS012 - A resource has a public IP address.

Explanation

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.

Insecure Example

The following example will fail the AWS012 check.

resource "aws_launch_configuration" "bad_example" {
	associate_public_ip_address = true
}

Secure Example

The following example will pass the AWS012 check.

resource "aws_launch_configuration" "good_example" {
	associate_public_ip_address = false
}