More Info:

This rule checks if Amazon Elastic Compute Cloud (Amazon EC2) uses multiple Elastic Network Interfaces (ENIs) or Elastic Fabric Adapters (EFAs). The rule is NON_COMPLIANT an Amazon EC2 instance use multiple network interfaces.

Risk Level

Low

Address

Configuration

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the issue of an EC2 instance using multiple Elastic Network Interfaces (ENIs) in AWS, you can follow these steps using the AWS Management Console:

  1. Identify the EC2 Instance:

    • Log in to your AWS Management Console.
    • Go to the EC2 dashboard.
    • Identify the EC2 instance that is using multiple ENIs.
  2. Detach Unnecessary ENIs:

    • Select the EC2 instance that is using multiple ENIs.
    • In the Description tab, under Network interfaces, you will see the list of attached ENIs.
    • Identify the additional ENIs that are not required for the instance.
    • Select the unnecessary ENIs one by one and click on the “Actions” dropdown.
    • From the dropdown, select “Detach network interface”.
    • Confirm the action to detach the ENI from the EC2 instance.
  3. Delete Unnecessary ENIs (Optional):

    • If the ENIs are no longer needed in your account, you can also choose to delete them.
    • Go to the EC2 dashboard and select “Network Interfaces” from the left-hand menu.
    • Identify the unnecessary ENIs and select them.
    • Click on the “Actions” dropdown and choose “Delete network interface”.
    • Confirm the action to delete the ENI.
  4. Verify Configuration:

    • After detaching or deleting the unnecessary ENIs, go back to the EC2 instance Description tab.
    • Ensure that the EC2 instance is now using only the required ENI.
  5. Update Security Groups and Route Tables (if necessary):

    • If the ENIs that were detached had specific security group rules or were associated with custom route tables, make sure to update the security groups and route tables associated with the remaining ENI to ensure connectivity and proper network routing.

By following these steps, you should be able to remediate the issue of an EC2 instance using multiple Elastic Network Interfaces in AWS and ensure that it is using only the necessary ENIs.