Skip to content
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

ClientException: Family contains invalid characters when using ecs-cli compose #37

Closed
wjimenez5271 opened this issue Nov 5, 2015 · 2 comments

Comments

@wjimenez5271
Copy link

Trying to launch a docker-compose file that works locally with compose, and I get the following errors:

ecs-cli compose --file docker-compose.yml up
ERRO[0000] Error registering task definition             error=ClientException: Family contains invalid characters.
    status code: 400, request id: 81108bb6-840b-11e5-a881-4de8415be30c family=0xc208036440
ERRO[0000] Create task definition failed                 error=ClientException: Family contains invalid characters.
    status code: 400, request id: 81108bb6-840b-11e5-a881-4de8415be30c
FATA[0000] ClientException: Family contains invalid characters.
    status code: 400, request id: 81108bb6-840b-11e5-a881-4de8415be30c

Its unclear to me what "Family" its referring to

@uttarasridhar
Copy link
Contributor

Thanks for reporting, we will add better error messaging.

Family refers to the name of the ECS Task Definition that this tool creates by translating the docker compose yml.
http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#family

We autogenerate the family name using the --project-name flag that is passed to ecs-cli compose, which defaults to the directory name you are running this command from. Acceptable characters for the project-name are letters (uppercase and lowercase), numbers, hyphens, and underscores.

@wjimenez5271
Copy link
Author

@uttarasridhar thanks, that's helpful, I was able to get around the issue by specifying a the project name manually (with a valid name).

juanrhenals added a commit to juanrhenals/amazon-ecs-cli that referenced this issue Dec 4, 2015
Fixed the logging of the Family name by dereferencing a pointer
correctly when calling RegisterTaskDefinition API.

Fixes aws#37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants