Copilot-cli: Repository names with capital letters break tasks

Created on 22 Dec 2020  路  4Comments  路  Source: aws/copilot-cli

My repo name is all caps like https://github.com/org/APP. This hasn't been an issue until trying to run a task. In CF I get this error for the ECRRepo step: Model validation failed (#/RepositoryName: failed validation constraint for keyword [pattern]). RepositoryName is the TaskName parameter combined with "copilot-". Would it be a problem to lowercase the repo name when using it for the TaskName?

good first issue sizS typbug

All 4 comments

heya @lukeledet ! good idea, we'll fix this on our end.
In the mean time to mitigate the issue, you can use the -n, --task-group-name flag and pass in -n app (lowercase) and I think that should unblock you.

I didn't know -n would help here, thanks @efekarakus !

Merged a fix in #1784 it should go out next release 馃悰 馃敤

This was released just now in v1.1.0: https://github.com/aws/copilot-cli/releases/tag/v1.1.0!

Was this page helpful?
0 / 5 - 0 ratings