Medium
EC2
Regional
EC2 subnets should not automatically assign public IP addresses
CIS
Description
Checks whether Amazon EC2 subnets automatically assign public IP addresses.
Remediation
To comply with this control, modify the subnet settings to disable the automatic assignment of public IP addresses.
Steps
- Sign in to the AWS Management Console and open the Amazon VPC console at https://console.aws.amazon.com/vpc/.
- In the navigation pane, click on 'Subnets'.
- Select the subnet you want to modify.
- In the 'Subnet Actions' dropdown menu, select 'Modify auto-assign IP settings'.
- Uncheck 'Auto-assign public IPv4 address' to ensure public IP addresses are not automatically assigned.
- Click 'Save' to apply the changes.
Compliance
CIS