-
Notifications
You must be signed in to change notification settings - Fork 11
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
Error Auth-type 'oauth2' is not supported, use 'personal_token' instead
after importing scalr_vcs_provider
#375
Comments
Hi, @huguesalary. Unfortunately, the Scalr provider cannot support |
Thank you @emocharnik, that makes sense. That being said, the way current Below are 2 confusing scenarios. 1st scenarioThis scenario is the one I originally created this issue for.
import {
to = scalr_vcs_provider.gitlab
id = "vcs-xxxxxxxxxxxxxxxxxx"
}
resource "scalr_vcs_provider" "gitlab" {
name = "gitlab"
vcs_type = "gitlab"
token = "gloas-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
import {
to = scalr_vcs_provider.gitlab
id = "vcs-xxxxxxxxxxxxxxxxxx"
}
resource "scalr_vcs_provider" "gitlab" {
name = "gitlab-renamed" # <--- changed the name here
vcs_type = "gitlab"
token = "gloas-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
This errors out with
Why it is confusingI was able to import the resource using an Only when I changed an attribute of the resource (the 2nd scenarioThis scenario might just be a bug? Trying to create a resource "scalr_vcs_provider" "gitlab" {
name = "gitlab"
vcs_type = "gitlab"
token = var.gitlab_access_token
} Returns this error:
Why it is confusingI'm trying to create a new VCS provider: why does it complain about not finding it? |
@huguesalary sorry for the delay on this, we are reviewing the two scenarios |
The error:
(
vcs-xxxxxxxxxxxxxxxxxx
is a redacted ID)How it happened:
gitlab - Hugues
(note the name, it's important)main.tf
filetofu apply
This last step errors with
The text was updated successfully, but these errors were encountered: