-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error listing tasks, InvalidParameterException: ownerId longer than 36 #97
Comments
ecs-cli uses the "started-by" field to determine (and list) the tasks started by this compose project. With the v0.3.0 release, we have made the prefix for "started-by" configurable by supplying Example:
By setting it to empty, all the successive tasks started by ecs-cli compose would have started-by field as "project-name", which is "production_prod-ecscpu1_alerts" You can find more information in the docs. Hope that helps. |
This limit just turned into a pretty nasty problem for us @uttarasridhar. These names have been in use for months before we needed the ecs-cli so changing them is painful (not that that's your fault!). I see AWS ECS allows for 255 characters when setting a Task Definition Name ( In case the thinking behind the limit is indeed that no task needs a longer name and you want to save bytes or something, let me shed some light on how our names are over 36 chars: The core of the name is pretty much |
@alextes The reason why you are running into this issue is because the cli calls StartTask with the StartedBy field (StartedBy has a limit of 36 characters, see doc. We need to set this StartedBy field because |
@uttarasridhar thank you. used --compose-project-name-prefix "" . we are no longer having the StartedBy: errors. |
@yinshiua thank you for linking the doc!
It sounds like I should have a chat with our friendly DevOps people to see if we can do some mapping of project-prefix + project-name to some ID we can pass to your CLI for use as the startedBy property. Is it correct to say that the way to deal with this limit is to still use project-prefix + project-name but drop semantic correctness and actually pass some identifier instead? |
I'm the friendly DevOps person @alextes mentioned. ;) The problem for us is that compose-project-name-prefix is used both for Looking at the documentation for ecs-cli configure,
Intuitively, I would've expected a different parameter to set The way we are using the Would it be possible to add a different parameter to |
@jdno Thanks for the detail explanation. I think this is a valid concern. We should not be limiting the length of We are actually thinking of deprecating the prefixes since most customers just set it to empty and other various reasons, so I would be opposed to add another parameter in the We can get around with this by either using the hashed |
Thanks a lot. 👍 Let me know if i can help. |
@jdno We don't have plans to increase the limit for |
ecs-cli compose -p "production_prod-ecscpu1_alerts" -f "/data/application/workspaces/production_prod-ecscpu1_alerts/artisan-run-alerts.yml"
Can't seem to get around this error and appears to be no documentation on what ownerId might be.
The text was updated successfully, but these errors were encountered: