Skip to content

Documentation Error for Teams Data Source #879

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

Closed
ashraidiam opened this issue Oct 20, 2022 · 3 comments
Closed

Documentation Error for Teams Data Source #879

ashraidiam opened this issue Oct 20, 2022 · 3 comments

Comments

@ashraidiam
Copy link

Hello, this a documentation bug for the mongodbatlas_teams data source. The resource is incorrectly documented. teams != teams..

The correct documentation should be:

data "mongodbatlas_team" "developers" {
  org_id = 123
  name   = mongodbatlas_team.developers.name
}

Terraform CLI and Terraform MongoDB Atlas Provider Version

Terraform Configuration File

# Copy-paste your configuration info here

Steps to Reproduce

Create the resource as described above.

Expected Behavior

Data to be returned.

Actual Behavior

 Error: Reference to undeclared resource
│ 
│   on  projects.tf line 17, in module "projects":17:   team_id  = data.mongodbatlas_team.developers.team_id
│ 
│ A data resource "mongodbatlas_team" "developers" has not been declared in the root module.

Debug Output

Crash Output

Additional Context

References

https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/data-sources/projects

@Zuhairahmed
Copy link
Contributor

Zuhairahmed commented Oct 20, 2022

Thank you @ashraidiam for your eagle eyes! Do you mind creating a quick PR for this one? Also please be sure to sign the CLA if you haven't already. https://github.com/mongodb/terraform-provider-mongodbatlas/blob/master/CONTRIBUTING.md

@ashraidiam
Copy link
Author

@Zuhairahmed I'm still rocking MK1 eyeballs 😂😂. Sure I will PR.

@Zuhairahmed
Copy link
Contributor

Closing as PR was created here: #881

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