Hi, we are trying to create container registry (Scaleway) via Terraform and during apply step, we get this error even with admin level token. Is it possible to do that and what could be the problem? We already tried the latest provider version.
╷
│ Error: Error on container registry create
│
│ with qovery_container_registry.scaleway-cr,
│ on main.tf line 65, in resource "qovery_container_registry" "scaleway-cr":
│ 65: resource "qovery_container_registry" "scaleway-cr" {
│
│ failed to create registry: Could not create container registry 'Scaleway CR 1', unexpected error: 401 Unauthorized
╵
Are you using a custom role to do this? Or are you using Admin role?
We have a limitation, you can only create a new Container Registry with the Admin role. This might be your problem.
If you want to use restricted roles for Terraform, you must create your Container Registry, either with a first Terraform using Admin role or in the console.
Ok, but does this work to you with “SCALEWAY_CR” type registry? I just created a new Admin level token, tried to create a new Container Registry using that token and got the same error. It works to us with other registry types.