Skip to content

Projects Data Source inaccurate documentation #867

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 11, 2022 · 2 comments
Closed

Projects Data Source inaccurate documentation #867

ashraidiam opened this issue Oct 11, 2022 · 2 comments

Comments

@ashraidiam
Copy link

Hello, this a documentation bug for the mongodbatlas_projects data source to return all projects. The resource is incorrectly documented. projects != project.

The correct documentation should be:

data "mongodbatlas_projects" "active_projects" {
  page_num = 1
  items_per_page = 5

}

Terraform CLI and Terraform MongoDB Atlas Provider Version

data "mongodbatlas_project" "active_projects" {
  page_num = 1
  items_per_page = 5

}

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: Unsupported argument
│ 
│   on projects.tf line 18, in data "mongodbatlas_project" "active_projects":18:   page_num = 1
│ 
│ An argument named "page_num" is not expected here.
╵
╷
│ Error: Unsupported argument
│ 
│   on projects.tf line 19, in data "mongodbatlas_project" "active_projects":19:   items_per_page = 5
│ 
│ An argument named "items_per_page" is not expected here.

Debug Output

Crash Output

Additional Context

References

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

@Zuhairahmed
Copy link
Contributor

Great catch @ashraidiam. PR created and docs should be updated next week. #869

Zuhairahmed added a commit to Zuhairahmed/terraform-provider-mongodbatlas that referenced this issue Nov 7, 2022
@Zuhairahmed
Copy link
Contributor

Closing as PR has been merged #869

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