AWS Security ChangesHomeSearch

AWS AmazonECS medium security documentation change

Service: AmazonECS · 2025-08-22 · Security-related medium

File: AmazonECS/latest/developerguide/service-event-messages-list.md

Summary

Added two new service event messages and documentation sections about IAM permission misconfigurations and trust relationship issues impacting ECS service stability

Security assessment

The changes explicitly document how misconfigured IAM permissions and trust policies can prevent ECS from maintaining services. This addresses security-adjacent configuration errors that could lead to service disruption. While not a direct vulnerability, improper IAM configurations are a security concern.

Diff

diff --git a/AmazonECS/latest/developerguide/service-event-messages-list.md b/AmazonECS/latest/developerguide/service-event-messages-list.md
index 0cb7b3a33..c897f62ec 100644
--- a//AmazonECS/latest/developerguide/service-event-messages-list.md
+++ b//AmazonECS/latest/developerguide/service-event-messages-list.md
@@ -5 +5 @@
-service (service-name) has reached a steady state.service (service-name) was unable to place a task because no container instance met all of its requirements.service (service-name) was unable to place a task because no container instance met all of its requirements. The closest matching container-instance container-instance-id has insufficient CPU units available.service (service-name) was unable to place a task because no container instance met all of its requirements. The closest matching container-instance container-instance-id encountered error "AGENT".service (service-name) (task task-id) (instance instance-id) is unhealthy in (elb elb-name) due to (reason Instance has failed at least the UnhealthyThreshold number of health checks consecutively.)service (service-name) is unable to consistently start tasks successfully.service (service-name) operations are being throttled. Will try again later.service (service-name) was unable to stop or start tasks during a deployment because of the service deployment configuration. Update the minimumHealthyPercent or maximumPercent value and try again.service (service-name) was unable to place a task. Reason: You've reached the limit on the number of tasks you can run concurrentlyservice (service-name) was unable to place a task. Reason: Internal error.service (service-name) was unable to place a task. Reason: The requested CPU configuration is above your limit.service (service-name) was unable to place a task. Reason: The requested MEMORY configuration is above your limit.service (service-name) was unable to place a task. Reason: You’ve reached the limit on the number of vCPUs you can run concurrentlyservice (service-name) was unable to reach steady state because task set (taskSet-ID) was unable to scale in. Reason: The number of protected tasks are more than the desired count of tasksservice (service-name) was unable to reach steady state. Reason: No Container Instances were found in your capacity provider.service (service-name) was unable to place a task. Reason: Capacity is unavailable at this time. Please try again later or in a different availability zone.service (service-name) deployment failed: tasks failed to start.service (service-name) Timed out waiting for Amazon ECS Agent to start. Please check logs at /var/log/ecs/ecs-agent.log".service (service-name) task set (taskSet-ID) (task task-id) is not healthy in target-group (targetGroup-ARN)) due to TARGET GROUP IS NOT FOUND. service (service-name) task set (taskSet-ID) (task task-id) is not healthy in target-group (targetGroup-ARN)) due to TARGET IS NOT FOUND. 
+service (service-name) has reached a steady state.service (service-name) was unable to place a task because no container instance met all of its requirements.service (service-name) was unable to place a task because no container instance met all of its requirements. The closest matching container-instance container-instance-id has insufficient CPU units available.service (service-name) was unable to place a task because no container instance met all of its requirements. The closest matching container-instance container-instance-id encountered error "AGENT".service (service-name) (task task-id) (instance instance-id) is unhealthy in (elb elb-name) due to (reason Instance has failed at least the UnhealthyThreshold number of health checks consecutively.)service (service-name) is unable to consistently start tasks successfully.service (service-name) operations are being throttled. Will try again later.service (service-name) was unable to stop or start tasks during a deployment because of the service deployment configuration. Update the minimumHealthyPercent or maximumPercent value and try again.service (service-name) was unable to place a task. Reason: You've reached the limit on the number of tasks you can run concurrentlyservice (service-name) was unable to place a task. Reason: Internal error.service (service-name) was unable to place a task. Reason: The requested CPU configuration is above your limit.service (service-name) was unable to place a task. Reason: The requested MEMORY configuration is above your limit.service (service-name) was unable to place a task. Reason: You’ve reached the limit on the number of vCPUs you can run concurrentlyservice (service-name) was unable to reach steady state because task set (taskSet-ID) was unable to scale in. Reason: The number of protected tasks are more than the desired count of tasksservice (service-name) was unable to reach steady state. Reason: No Container Instances were found in your capacity provider.service (service-name) was unable to place a task. Reason: Capacity is unavailable at this time. Please try again later or in a different availability zone.service (service-name) deployment failed: tasks failed to start.service (service-name) Timed out waiting for Amazon ECS Agent to start. Please check logs at /var/log/ecs/ecs-agent.log".service (service-name) task set (taskSet-ID) (task task-id) is not healthy in target-group (targetGroup-ARN)) due to TARGET GROUP IS NOT FOUND. service (service-name) task set (taskSet-ID) (task task-id) is not healthy in target-group (targetGroup-ARN)) due to TARGET IS NOT FOUND. IAM permissions policies have been misconfigured or changed, and ECS can no longer maintain your serviceIAM trust relationship has been misconfigured or changed, and ECS can no longer maintain your service
@@ -295,0 +296,12 @@ The task set for the service is failing health checks because the target isn't f
+## IAM permissions policies have been misconfigured or changed, and ECS can no longer maintain your service
+
+The service is unable to maintain tasks due to misconfigured or changed IAM permissions policies. The IAM role associated with your ECS service or tasks may be missing required permissions.
+
+To resolve this issue, add the necessary permissions to the IAM role. For more information about managing IAM permissions policies, see [Adding and removing IAM identity permissions](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_manage-attach-detach.html) in the _IAM User Guide_.
+
+## IAM trust relationship has been misconfigured or changed, and ECS can no longer maintain your service
+
+The service is unable to maintain tasks due to a misconfigured or changed IAM trust relationship. The IAM role associated with your ECS service or tasks may have an incorrect trust policy.
+
+To resolve this issue, configure a trust policy for the role used in your task definition. For more information about creating trust policies for custom roles, see [Creating a role for a custom use case](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-custom.html) in the _IAM User Guide_.
+