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 |
|
---|---|
Default |
|
Valid Values [YAML] |
|
Examples [YAML] |
|
Category
In Your Workspace
Developers
- tmod:@turbot/turbot#/control/categories/other
- tmod:@turbot/aws-vpc-core#/policy/types/subnetSetAutoAssignPublicIp
- turbot graphql policy-type --id "tmod:@turbot/aws-vpc-core#/policy/types/subnetSetAutoAssignPublicIp"
- turbot graphql policy-settings --filter "policyTypeId:tmod:@turbot/aws-vpc-core#/policy/types/subnetSetAutoAssignPublicIp"
Get Policy TypeGet Policy Settings