Skip to content

Files

Latest commit

 

History

History
27 lines (18 loc) · 669 Bytes

aws-autoscaling-no-public-ip.md

File metadata and controls

27 lines (18 loc) · 669 Bytes

Pattern: Use of public IP for AWS resource

Issue: -

Description

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.

Resolution: Set the instance to not be publicly accessible.

Examples

Example of incorrect code:

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

Example of correct code:

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