Ensure VPC subnets do not assign public IP by default

Error: VPC subnets should not allow automatic public IP assignment

Bridgecrew Policy ID: BC_AWS_NETWORKING_53
Checkov Check ID: CKV_AWS_130
Severity: MEDIUM

VPC subnets should not allow automatic public IP assignment

Description

TBD

Fix - Buildtime

Terraform

  • Resource: aws_subnet
  • Argument: map_public_ip_on_launch
resource "aws_subnet" "test" {
 ...
+ map_public_ip_on_launch = false
  }

Did this page help you?