ECS extends CPU and memory IAM condition keys to RunTask
Facts read 10 Nov 2026. Page reviewed 16 Nov 2026.
AWS announced on 10 September 2026 that the ecs:task-cpu and ecs:task-memory IAM condition keys now apply to the RunTask and StartTask APIs in Amazon ECS. Administrators can enforce one consistent set of CPU and memory limits however a task is launched.
Amazon ECS now supports the IAM condition keys for CPU and memory on the RunTask and StartTask APIs, per an AWS announcement dated 10 September 2026. Administrators can use them to enforce consistent CPU and memory limits across all ways of launching ECS tasks. AWS says this helps organizations prevent unexpected cost overruns and keep workloads within their resource policies.
Before this change, ecs:task-cpu and ecs:task-memory worked only on RegisterTaskDefinition, CreateService and UpdateService. IAM policies that reference the keys are now evaluated when tasks start through RunTask and StartTask too. The announcement says it is available in all Regions where ECS is available at no additional cost, so an existing deny on large tasks can now cover those launch paths.
Related pages
Sources
- https://aws.amazon.com/about-aws/whats-new/2026/09/amazon-ecs-expands-condition-key-support/, read 10 Nov 2026
Last reviewed 16 Nov 2026.