π‘οΈ AWS ECS Fargate Service platform version is outdatedπ’
- Contextual name: π‘οΈ Fargate Service platform version is outdatedπ’
- ID:
/ce/ca/aws/ecs/fargate-service-version - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
RELIABILITY
Statsβ
not available
Logicβ
- π§ prod.logic.yamlπ’
Similar Policiesβ
Descriptionβ
Descriptionβ
This policy identifies AWS ECS Fargate Services that are configured with platform version 1.1.0, 1.2.0 or 1.3.0, or have running tasks using these versions.
AWS Fargate platform versions identify the kernel and container runtime used by tasks; they are separate from task-definition revisions, container image versions and internal platform patch revisions. The latest platform versions are Linux 1.4.0 and Windows 1.0.0.
Rationaleβ
Running services on outdated platform versions prevents access to the latest features, performance optimizations, and security enhancements.
Impactβ
Upgrading to a newer platform version may require operational effort to ensure compatibility with existing tasks and configurations. Migrating to Linux 1.4.0 changes task networking; check task-ENI access to image registries, logs and secrets.
Auditβ
This policy marks an AWS ECS Service as
INCOMPLIANTif itsPlatform Version, or thePlatform Versionof a related AWS ECS Task withLast StatusRUNNING andLaunch TypeFARGATE, is 1.1.0, 1.2.0 or 1.3.0. The service must haveStatusACTIVE; a confirmed older configuration or task takes precedence over task-data diagnostics, even when scaled to zero.... see more
Remediationβ
Remediationβ
Update the ECS Service to Use the
LATESTPlatform VersionβBefore applying the update in production, ensure that your application is tested with the new platform version in a staging environment to verify compatibility.
Changing the platform version triggers a new service deployment. Confirm the operating system and target availability in the service's Region: the latest platform versions are Linux 1.4.0 and Windows 1.0.0. For Linux 1.4.0, follow the AWS migration guide; check task-ENI egress and VPC endpoints for image pulls, logs and secrets.
For the ECS deployment controller, use the command below. For CODE_DEPLOY, create a new CodeDeploy deployment; for EXTERNAL, create and promote an updated task set through that controller. These controllers do not support changing the platform version through
update-service. Preserve existing service configuration and sufficient deployment capacity.... see more