More Info:

This rule checks if Amazon Elastic Container Service (ECS) task definitions have a set memory limit for its container definitions. The rule is NON_COMPLIANT for a task definition if the ‘memory’ parameter is absent for one container definition.

Risk Level

Low

Address

Configuration

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the ECS Task Definitions having memory limit set in AWS Kubernetes using the AWS console, follow these steps:

  1. Access AWS Management Console: Go to the AWS Management Console (https://console.aws.amazon.com/).

  2. Navigate to Amazon EKS: Click on the “Services” dropdown menu at the top left corner of the AWS Management Console, then select “Elastic Kubernetes Service (EKS)” under the “Containers” category.

  3. Select your EKS Cluster: Click on the name of the EKS cluster where the ECS Task Definitions with memory limit set are located.

  4. Navigate to the EKS Cluster: In the EKS console, navigate to the “Workloads” section in the left-hand menu.

  5. Select the Deployment: Locate the deployment that corresponds to the ECS Task Definition with memory limit set, and click on it to view its details.

  6. Edit the Deployment: Click on the “Actions” dropdown menu and select “Edit”.

  7. Update the Memory Limit: In the deployment configuration, locate the section where the memory limit is set. Remove or adjust the memory limit as needed to remediate the misconfiguration.

  8. Save Changes: After updating the memory limit, scroll down to the bottom of the page and click on the “Save” button to apply the changes.

  9. Verify the Changes: Once the changes are saved, monitor the deployment to ensure that the memory limit has been successfully remediated.

By following these steps, you can remediate the ECS Task Definitions with memory limit set in AWS Kubernetes using the AWS console.