Skip to content

feat: Support ECS Managed Daemons - #485

Merged
keidarcy merged 2 commits into
keidarcy:masterfrom
guikcd:ecs_managed_daemons
Jun 22, 2026
Merged

feat: Support ECS Managed Daemons#485
keidarcy merged 2 commits into
keidarcy:masterfrom
guikcd:ecs_managed_daemons

Conversation

@guikcd

@guikcd guikcd commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Add ECS Managed Daemons support

Summary

Adds full support for ECS Managed Daemons (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/managed-daemons.html), a new AWS feature that deploys cross-cutting software agents independently across ECS infrastructure using dedicated daemon task definitions.

SDK upgrade

  • aws-sdk-go-v2/service/ecs v1.74.0 → v1.83.0 (first version with daemon APIs)

New views

  • Daemon list view (accessible from cluster via Shift+M)
  • Daemon task definition view (accessible from daemon via Enter/t, or from a daemon task in cluster tasks via t)

New API layer (internal/api/daemon.go)

  • ListDaemons — list daemons in a cluster
  • DescribeDaemon — get daemon detail
  • ListDaemonTaskDefinitions — list revisions for a daemon task definition family
  • DescribeDaemonTaskDefinition — describe a specific revision
  • DescribeDaemonRevisions — resolve daemon → task definition family

Cluster view

  • Added "Daemons" column showing the count of managed daemons per cluster

Navigation

  • Shift+M from cluster view → daemon list
  • Enter or t from daemon list → daemon task definitions
  • t from a daemon task (in cluster tasks view) → daemon task definition (instead of regular task definition)
  • d to describe daemons and daemon task definitions as JSON
  • Standard back navigation (Esc/h)

GitHub Actions

  • Bump checkout & setup-go Actions to update to node 24:
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-go@v5. Actions will be forced to run with Node.js 24 by default starting June 16th, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

Code assisted with Kiro-cli

@guikcd
guikcd marked this pull request as draft June 12, 2026 09:16
@keidarcy
keidarcy marked this pull request as ready for review June 14, 2026 13:22
@keidarcy

Copy link
Copy Markdown
Owner

Thank you for your contribution. I believe this could be a useful feature for people who are using it.

Could you please help adding terraform test files that I can apply and test this branch easily.

@guikcd

guikcd commented Jun 15, 2026

Copy link
Copy Markdown
Contributor Author

Ok terraform aws provider support ECS Managed Daemons since June 10
I've added terraform file daemon.tf but i still have issues on destroy, I need to investigate why (for now: I need to de-register the managed instance manually to trigger the daemon stop...)

@guikcd
guikcd force-pushed the ecs_managed_daemons branch 2 times, most recently from 3a5efea to d666ff5 Compare June 15, 2026 09:05
@guikcd
guikcd force-pushed the ecs_managed_daemons branch from d666ff5 to 2b5c8fc Compare June 15, 2026 12:07
@guikcd

guikcd commented Jun 15, 2026

Copy link
Copy Markdown
Contributor Author

Created daemon.tf. I just created a daemon and a service to verify.

Tested e1s:

e1s_managed_daemons

@keidarcy
keidarcy self-requested a review June 17, 2026 01:28
@keidarcy
keidarcy merged commit 6888821 into keidarcy:master Jun 22, 2026
1 check passed
@keidarcy

Copy link
Copy Markdown
Owner

I made some alignments and removed get daemon service count on cluster list since I think it's not worth to spend time to get it for all clusters.

Thank you very much for this PR. Published in the latest version.

@guikcd
guikcd deleted the ecs_managed_daemons branch June 24, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants