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

Bug: Provider does not support alias #86

Open
bluemalkin opened this issue May 8, 2019 · 0 comments
Open

Bug: Provider does not support alias #86

bluemalkin opened this issue May 8, 2019 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@bluemalkin
Copy link

It appears that the provider (using latest build) does not support alias.

provider "mongodbatlas" {
  alias = "operations-1"

  username = "xxx"
  api_key  = "xxx"
}

resource "mongodbatlas_project" "operations-1" {
  provider = "mongodbatlas.operations-1"

  org_id = "xxx"
  name   = "Operations-1"
}

Results in:

terraform import mongodbatlas_project.operations-1 xxxx
mongodbatlas_project.operations-1: Importing from ID "xxxxx"...
mongodbatlas_project.operations-1: Import complete!
  Imported mongodbatlas_project (ID: xxxx)
mongodbatlas_project.operations-1: Refreshing state... (ID: xxxx)

Error: mongodbatlas_project.operations-1 (import id: xxxx): 1 error(s) occurred:

* import mongodbatlas_project.operations-1 result: xxxx: mongodbatlas_project.operations-1: Error reading MongoDB Project xxx: MongoDB Atlas: 401 User cannot access this group.

If I remove alias = "operations-1" and provider = "mongodbatlas.operations-1" lines it works.

Really need this to work as I'm managing multiple projects.

@akshaykarle akshaykarle added the help wanted Extra attention is needed label May 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants