Mods
AWS

Policy: AWS > VPC > Subnet > Auto Assign Public IP

Define the Auto-assign Public IP setting required for AWS > VPC > Subnet.

All subnets have an attribute that determines whether a network interface created in the subnet automatically receives a public IPv4 address (also referred to as a public IP address). Therefore, when you launch an instance into a subnet that has this attribute enabled, a public IP address is assigned to the primary network interface (eth0) that's created for the instance. A public IP address is mapped to the primary private IP address through network address translation (NAT).

The values Check: Auto Assign Public IP and Enforce: Auto Assign Public IP have been deprecated and replaced by Check: Enabled and Enforce: Enabled respectively. The deprecated values will be removed in the next major version, v6.0.0

Resource Types

This policy targets the following resource types:

Controls

Policy Specification

Schema Type
string
Default
Skip
Valid Values [YAML]
  • Skip
    
  • Check: Auto Assign Public IP
    
  • Check: Enabled
    
  • Check: Disabled
    
  • Enforce: Auto Assign Public IP
    
  • Enforce: Enabled
    
  • Enforce: Disabled
    
Examples [YAML]
  • Skip
    

Category

In Your Workspace

Developers