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

authentication required when creating nodejs application #106

Open
SimTheFool opened this issue Feb 14, 2025 · 2 comments
Open

authentication required when creating nodejs application #106

SimTheFool opened this issue Feb 14, 2025 · 2 comments

Comments

@SimTheFool
Copy link

Hi !

I'm using terraform to a nodejs application on clever cloud. I'm not sure what I'm doing wrong.

resource "clevercloud_nodejs" "backend" {
    name = "${var.envname}.backend"
    region = "par"
    min_instance_count = 1
    max_instance_count = 1
    smallest_flavor = "nano"
    biggest_flavor = "nano"
    registry = "gitlab.com"
    registry_token = "glpat-xxxxxxxx"
    deployment {
        repository = "https://gitlab.com/xxxx/xxxxx.git"
        commit = "e7f202c5e56f2693a084d3c0fb7e954x006df1ba"
    }
}

The registry token I'm using as full read and write access. When using terraform apply I got thid error:

Error: failed to clone repository

  with clevercloud_nodejs.backend,
  on main.tf line 20, in resource "clevercloud_nodejs" "backend":
  20: resource "clevercloud_nodejs" "backend" {
 
authentication required

Does that mean my token is not ok for clever cloud to be able to pull the repository from the registry ?

@miton18
Copy link
Collaborator

miton18 commented Feb 17, 2025

Hi @SimTheFool sadly, registry and registry_token keys does not exists on our side
there is no auth support yet on deployment.

1/ You can try to put your token on the URL like repository = "https://[email protected]/xxxx/xxxxx.git"

2/ if does not works, we can add some auth mechanisms

@SimTheFool
Copy link
Author

Hi ! Thx for your reply !

Sadly it does not seem to work with repository = "https://[email protected]/xxxx/xxxxx.git", I get the same error.

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

No branches or pull requests

2 participants