AWS Builder Center

Amazon ECS Adds Action Logs to Make Internal Deployment Processes Visible

A simple cluster-level opt-in now exposes the internal steps ECS takes during service deployments and Managed Daemon updates as timestamped logs. This article covers what gets recorded, how delivery works, how to enable it, and key operational considerations, cross-checked against the official documentation.

Introduction

On July 21, 2026, AWS announced Action Logs for Amazon ECS. It's a new observability feature that surfaces the actions ECS performs internally during service deployments and ECS Managed Daemon updates as timestamped logs.
If you operate services on ECS, you may have run into a deployment failure and had no idea what actually happened, spending time just figuring out the cause. Action Logs directly addresses that "I can't tell what's happening inside ECS" problem.
This article walks through what has changed, where Action Logs is useful, and how to enable and operate it. It's aimed primarily at infrastructure, SRE, and DevOps engineers who run services on ECS.

What's Changed

Many people may never have thought much about the internal operations ECS performs during service deployments and Managed Daemon updates. In fact, you could already observe a resource's starting and ending states, but what ECS was doing in between was invisible. Intermediate steps such as pulling the container image, registering with the load balancer, and configuring security groups were operations you simply couldn't see.
Item
Before Action Logs
After Action Logs
Visibility into internal operations
Only start/end states observable (intermediate steps invisible)
Intermediate steps also visible as timestamped logs
Investigating an issue
Contacting AWS Support or manually correlating multiple log sources
Directly traceable through Action Logs
Enablement unit
—
Cluster-level opt-in
What's covered
—
Service deployment state transitions and rollbacks, Managed Daemon lifecycle operations

The Problem Before Action Logs

When a deployment failed, all you could see was the final state a task ended up in — not what operations ECS went through to get there. Finding the root cause meant contacting AWS Support or manually correlating multiple log sources yourself, and in production incident response, that investigation time itself delayed recovery.

How Action Logs Solves It

Action Logs lets you capture ECS's internal decision-making process as logs, just by opting in at the cluster level. Because you can trace what happened, when, and why in chronological order, you no longer need to cross-reference multiple log sources every time you investigate an incident. Action Logs is available in all AWS Regions, including the AWS GovCloud (US) Regions.

What Action Logs Records

What Action Logs records falls into two broad categories: service deployments and the Managed Daemon lifecycle.
Target
What's recorded
Service deployments
State transitions, rollbacks, and lifecycle hook execution
Managed Daemon lifecycle
Create, update, delete, and instance drain operations
Each log entry includes the following fields:
Field
Description
timestamp
The time the event occurred, in Unix milliseconds
logLevel
Severity: INFO / WARN / ERROR
account
AWS account ID
region
AWS Region where the event occurred
resourceArn
The cluster ARN representing the opt-in scope
actionSourceId
An ID identifying the sub-resource, such as a service ARN or daemon ARN
eventName
The name identifying the action (e.g., DAEMON_DEPLOYMENT_IN_PROGRESS)
detail
An event-specific JSON payload with additional context about the action
It's worth remembering the division of labor here:  resourceArn  represents the cluster as a whole, while  actionSourceId  is what tells you which service or daemon the event actually came from — a useful thing to keep in mind when reading the logs.

How It Works

Action Logs is enabled by opting in at the cluster level. You can enable it from the Amazon ECS console, or configure it using the Amazon CloudWatch APIs ( PutDeliverySource ,  PutDeliveryDestination , and  CreateDelivery ).
Once enabled, ECS emits structured JSON logs through the CloudWatch Ingestion Hub and delivers them to the destination you choose. Delivery uses a fire-and-forget model, so publishing logs never blocks or delays ECS's own resource operations. Even if a delivery failure occurs, ECS continues processing your workloads without interruption.


Delivery Destinations

You can choose from three delivery destinations: CloudWatch Logs, Amazon S3, and Amazon Data Firehose.
Destination
Characteristics
CloudWatch Logs
Creates a log group named /aws/vendedlogs/ecs/action-logs/{resourceId}, with a separate log stream per sub-resource named after its actionSourceId
Amazon S3
Partitioned by account, Region, and 5-minute time windows, and stored gzip-compressed
Amazon Data Firehose
Delivered as newline-delimited JSON records in near real time
As a rule of thumb: choose CloudWatch Logs if real-time monitoring and alerting matter most, S3 if long-term retention and cost matter most, and Data Firehose if you want to feed an existing SIEM or streaming pipeline.

Amazon Q Integration

At launch, Amazon Q in the Amazon ECS console integrates with Action Logs. It automatically detects deployment issues such as circuit breaker rollbacks and unstable service revisions, and provides root cause analysis, resource-level comparisons, and step-by-step remediation guidance — all without leaving the console.

Use Cases

With the above in mind, here are some concrete scenarios where Action Logs is useful.

Investigating a Deployment Failure

When a service becomes unstable after deploying a new container image version, previously all you knew was that the task had failed. With Action Logs enabled, you can trace ERROR-level log entries chronologically to see exactly which task failed when, and what decision ECS made to trigger the rollback.

Isolating a Managed Daemon Update Failure

When you update an ECS Managed Daemon such as FireLens or the Datadog Agent, it's rolled out to multiple nodes in sequence, and sometimes only a specific node fails. Because each Action Logs entry includes the daemon's ARN as  actionSourceId , you can pinpoint exactly which daemon, and which operation, failed.

Automated Diagnosis with Amazon Q

The Amazon Q integration covered in the previous section also proves useful in real incident response. Even during an off-hours page, when there's no one else to consult right away, you can review root cause analysis and remediation steps directly in the console, making it easier to handle initial response on your own.

Audit and Compliance

Because Action Logs can also be delivered to Amazon S3, you can retain a long-term record of the deployment operations ECS performed. In regulated industries with strict compliance requirements, that record is useful for presenting a deployment history during an audit.

Getting Started

Action Logs is delivered using the Amazon CloudWatch Logs vended log delivery mechanism. You can enable it either from the Amazon ECS console or by calling the CloudWatch Logs APIs directly.

Prerequisites

The IAM identity used to enable and manage Action Logs needs to be allowed the following actions:
{
"Effect": "Allow",
"Action": [
"logs:PutDeliverySource",
"logs:PutDeliveryDestination",
"logs:CreateDelivery",
"logs:GetDelivery",
"ecs:AllowVendedLogDeliveryForResource"
],
"Resource": "*"
}

If you're delivering to CloudWatch Logs, the destination log group's resource policy must allow the  delivery.logs.amazonaws.com  service to write to it:
{
"Effect": "Allow",
"Principal": {
"Service": "delivery.logs.amazonaws.com"
},
"Action": [
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource": "arn:aws:logs:<region>:<account-id>:log-group:<log-group-name>:log-stream:*"
}


Enabling Action Logs from the Console

  1. Open the Amazon ECS console
  1. Under Clusters, select the target cluster
  1. Open the Configuration tab
  1. In the Action logs section, choose Add log delivery
  1. For Log type, select  ACTION_LOGS , and specify a destination log group. The log group name must have the  /aws/vendedlogs/  prefix; by default, ECS creates one named  /aws/vendedlogs/ecs/action-logs/<cluster-name> 
  1. Optionally configure which fields to include and their order, and the output format, then choose Add

Enabling Action Logs via the CLI

To enable Action Logs from the CLI, you register a delivery source, configure a delivery destination, and then create the delivery — three steps in sequence.
First, register the delivery source.  <delivery-source-name>  is any name you choose.
aws logs put-delivery-source \
--name <delivery-source-name> \
--resource-arn arn:aws:ecs:<region>:<account-id>:cluster/<cluster-name> \
--log-type ACTION_LOGS

Next, configure the delivery destination.  <delivery-destination-name>  is also any name you choose.
aws logs put-delivery-destination \
--name <delivery-destination-name> \
--output-format json \
--delivery-destination-configuration '{"destinationResourceArn": "arn:aws:logs:<region>:<account-id>:log-group:/aws/vendedlogs/ecs/action-logs/<cluster-name>"}'

Finally, create the delivery that links the source and destination together.
aws logs create-delivery \
--delivery-source-name <delivery-source-name> \
--delivery-destination-arn arn:aws:logs:<region>:<account-id>:delivery-destination:<delivery-destination-name>

Note: The official documentation's CLI example lists  EcsActionLogs  as the  --log-type  value, but the console UI displays  ACTION_LOGS  instead — the two don't match. This article uses  ACTION_LOGS , based on what the console shows, but we recommend confirming the correct value in your own environment before running the CLI commands.

Verifying Log Delivery

After configuring delivery, trigger an action in the cluster — for example, creating or updating a daemon service — then open Log groups in the CloudWatch console and check that new log streams have appeared under the target log group. If you're delivering to CloudWatch Logs, you can also view and filter the logs directly from the Amazon ECS console.

Disabling Action Logs

You can disable Action Logs by selecting the log delivery in the Configuration tab of the console and choosing Delete, or from the CLI by running  delete-delivery ,  delete-delivery-source , and  delete-delivery-destination  in sequence. This requires the additional permissions  logs:DeleteDelivery ,  logs:DeleteDeliverySource , and  logs:DeleteDeliveryDestination .

Operational Considerations

Cost

Action Logs itself doesn't add a separate fee — standard CloudWatch Logs, Amazon S3, or Amazon Data Firehose pricing applies to log ingestion and storage. When you enable CloudWatch Logs as the destination from the console, the log group's retention period defaults to 7 days, but you can change it freely on the destination side. It's worth tuning retention per environment: longer in production, where you may need it for incident investigation, and shorter in development, to keep costs down.
You can also use field selection at setup time to choose which fields are included in each log record, and in what order. If you don't need every field, narrowing the selection reduces the volume of logs ingested in the first place.

Alerting

Enabling Action Logs alone won't proactively notify you when something goes wrong. If you're delivering to CloudWatch Logs, you can create a CloudWatch metric filter that detects log entries with  logLevel  set to  ERROR , and pair it with a CloudWatch alarm to get real-time notification of deployment failures. This isn't a feature of Action Logs itself — it's an operational technique built on general CloudWatch Logs functionality.

Log Levels

The  logLevel  field (INFO / WARN / ERROR) on each log entry is an attribute of the entry itself, not a setting you use to filter which logs get delivered. In other words, once delivery is enabled, you should plan around receiving all severity levels together. If the log volume feels high during normal operation, a more realistic approach is to narrow the fields you record, as described above, or use a CloudWatch Logs Insights query to pull out only entries where  logLevel  is WARN or higher.

Summary

With Amazon ECS Action Logs, deployment and Managed Daemon operations that used to happen entirely inside ECS are now visible as timestamped logs, just by opting in at the cluster level. It cuts down on the need to contact AWS Support or manually cross-reference multiple log sources when something goes wrong, and the Amazon Q integration handles automated diagnosis for common problems.
That said, Action Logs requires a cluster-level opt-in, and standard usage fees apply regardless of which destination — CloudWatch Logs, S3, or Data Firehose — you choose. Before rolling it out, it's worth thinking through the operational details too: controlling cost through retention settings and field selection, and setting up alerts triggered by ERROR-level logs. We also found some small discrepancies between the official documentation and the console's actual behavior, such as the  --log-type  value for the CLI, so it's a good idea to verify behavior in your own environment before applying this in production.
Action Logs is available in all AWS Regions, including the AWS GovCloud (US) Regions.

References

Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article