pipecd icon indicating copy to clipboard operation
pipecd copied to clipboard

feat(ecs): Support tags when registering ECS task definitions

Open zyzzmohit opened this issue 7 months ago • 6 comments

What would you like to be added:

The ability to pass tags []types.Tag to the RegisterTaskDefinition function inside the ECS platform provider (pkg/app/piped/platformprovider/ecs/client.go), and propagate them to the AWS ECS SDK ecs.RegisterTaskDefinitionInput. Currently, there is an explicit // TODO: Support tags for registering task definition. left in the codebase at line 202.

Why is this needed:

AWS relies heavily on tags for cost allocation, organization, and IAM resource-level permissions. Discarding tags at the task definition registration phase breaks parity with AWS best practices, preventing teams from effectively tracking costs and managing their deployed resources directly via PipeCD metadata. I've noted this gap while working with the generic provider schemas.

zyzzmohit avatar Apr 14 '26 12:04 zyzzmohit

i'm working on this I will raise a PR resolving this shortly :)

zyzzmohit avatar Apr 14 '26 12:04 zyzzmohit

Hi @zyzzmohit, I've assigned this issue to you. Please give updates on how it's going :)

riahtgl avatar Apr 15 '26 09:04 riahtgl

Hi @riahtgl thanks for the assignment :)

I actually raised PR #6667 for this a few days ago, but @armistcxy reviewed it and noted that passing Service tags directly into the TaskDefinition isn't the best architectural practice. They mentioned that TaskDefinition tags will be properly supported later by migrating our parsing logic from types.TaskDefinition to ecs.RegisterTaskDefinitionInput

I have just replied on my closed PR offering to pick up that underlying migration work myself! I'll leave this issue open for now while I wait to hear if the maintainers are okay with me pivoting to tackle that parser migration under this issue :) , or if we should restructure this effort elsewhere

zyzzmohit avatar Apr 19 '26 04:04 zyzzmohit

Thanks for your attempt but I will do it

armistcxy avatar Apr 24 '26 12:04 armistcxy

Sounds like a plan! Thanks for the heads up @armistcxy

@riahtgl you can go ahead and unassign me from this issue so armistcxy can track his work here, I'll be pivoting my focus over to pkg/plugin/sdk for my next set of contributions as requested Thanks everyone :)

zyzzmohit avatar Apr 24 '26 18:04 zyzzmohit

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Oct 25 '26 00:10 github-actions[bot]