[ECS] [Fargate]: Add custom attributes to Cloudmap via ECS service deploy
- Dominant language
- Shell
- Stars
- 5.4k
- Forks
- 334
- PR merge metrics
- No merged PRs in 30d
Description
### Community Note
* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment
**Tell us about your request**
Enable ECS to add (user provided) custom attributes to Cloudmap
**Which service(s) is this request for?**
Fargate, ECS, Cloudmap, Appmesh
**Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?**
Currently it is not possible to tell ECS service to add custom attributes to Cloudmap instance.
[ECS adds certain attributes by default](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html), but I was thinking of adding additional attributes. eg. LIVE = true, so it allows to do some traffic shaping/simulate deregistration delay etc.. by filtering virtual nodes (in App Mesh) based on its attributes. It can be done with external tooling ofc, but then that needs to be made aware of scale-in and scale-out. eg. the tool needs to update Cloudmap after every task is launched. Would be great if this was supported in ECS by default.
As of now, custom attributes for tasks cannot be specified via task definition or during service creation.
Related Issue on aws-cdk: https://github.com/aws/aws-cdk/issues/1711
**Are you currently working around this issue?**
No
**Additional context**
Migrating to Appmesh
**Attachments**
If you think you might have additional information that you'd like to include via an attachment, please do - we'll take a look. (Remember to remove any personally-identifiable information.)
Contributor guide
Research direction
Start with the ECS service-discovery documentation linked in the issue and the related aws-cdk issue. Clarify how user-provided attributes would flow through ECS service deployment into Cloud Map and how scaling should preserve them; done means the roadmap has an agreed, implementable scope.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws
- Domain
- cloud
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100