qovery-cli icon indicating copy to clipboard operation
qovery-cli copied to clipboard

Can't add custom domain from the CLI

Open jmeiss opened this issue 1 year ago • 0 comments

What happened: I tried to add a custom domain to a container but I'm getting the following error:

❯ qovery container domain create --organization my_org --project WebApp --environment "production" --container web --domain "www.domain3.com"
Error: container  not found
Info: You can list all containers with: qovery container list

Though, when I list the containers, it looks to be existing:

❯ qovery container list
Name    | Type      | Status   | Last Update
web     | Container | DEPLOYED | 2023-05-24 13:25:57.483005 +0000 UTC
crontab | Container | DEPLOYED | 2023-05-24 11:05:38.631964 +0000 UTC
worker  | Container | DEPLOYED | 2023-05-24 11:05:38.088672 +0000 UTC

A second confirmation is that I simply replace create by list and it returns the list of already existing custom domains, meaning that the container exists:

❯ qovery container domain list --organization my_org --project WebApp --environment "production" --container web
Type            | Domain                                            | Validation Domain
CUSTOM_DOMAIN   | www.domain.com                                   | z55cce4d1-za1530209-gtw.z273b5fa8.rustrocks.space
CUSTOM_DOMAIN   | www.domain2.com                       | z55cce4d1-za1530209-gtw.z273b5fa8.rustrocks.space
BUILT_IN_DOMAIN | z55cce4d1-za1530209-gtw.z273b5fa8.rustrocks.space | N/A

What you expected to happen: Add a custom domain to a container

jmeiss avatar May 24 '23 13:05 jmeiss