More Info:

This rule checks if ECS Fargate services are set to the latest platform version. It is marked as NON_COMPLIANT if the PlatformVersion for the Fargate launch type is not set to LATEST or if neither latestLinuxVersion nor latestWindowsVersion are provided as parameters.

Risk Level

Medium

Address

Security

Compliance Standards

CBP,SEBI

Triage and Remediation

Remediation

To remediate the misconfiguration of the latest ECS Fargate platform version not being set in AWS, follow these steps using the AWS Management Console:

  1. Login to AWS Console: Go to the AWS Management Console (https://console.aws.amazon.com/) and login with your credentials.

  2. Navigate to ECS: In the AWS Management Console, navigate to the ECS (Elastic Container Service) service by either searching for it in the services search bar or by selecting it from the list of recently visited services.

  3. Select the Cluster: From the ECS dashboard, select the cluster where your Fargate tasks are running that you want to update the platform version for.

  4. View Services: In the cluster view, click on the “Services” tab to view the list of services running in the cluster.

  5. Select Service: Identify the service for which you want to update the ECS Fargate platform version and click on the service name to view its details.

  6. Update Task Definition: In the service details page, locate the “Task Definition” section and click on the task definition name to view its details.

  7. Create New Revision: In the task definition details page, click on the “Create new revision” button to create a new revision of the task definition.

  8. Update Platform Version: In the task definition editor, scroll down to the “Fargate platform version” section and select the latest platform version available from the dropdown list.

  9. Review and Save: Review the other configurations in the task definition if needed and then click on the “Create” button to save the new revision of the task definition with the updated Fargate platform version.

  10. Update Service: Once the new task definition revision is created, go back to the service details page, click on the “Update” button, and select the newly created task definition revision with the updated Fargate platform version.

  11. Update Service: Review the update strategy and click on the “Next step” button, then review the service configuration and click on the “Next step” button again.

  12. Update Service: Finally, click on the “Update Service” button to apply the changes and update the service with the new task definition revision using the latest ECS Fargate platform version.

By following these steps, you will successfully remediate the misconfiguration of not having the latest ECS Fargate platform version set in AWS ECS for your Kubernetes cluster.