mongodb / terraform-provider-mongodbatlas

Terraform MongoDB Atlas Provider: Deploy, update, and manage MongoDB Atlas infrastructure as code through HashiCorp Terraform
https://registry.terraform.io/providers/mongodb/mongodbatlas
Mozilla Public License 2.0
240 stars 168 forks source link

Inconsistent documentation between GitHub repo and Terraform site #136

Closed MontgomeryWatts closed 4 years ago

MontgomeryWatts commented 4 years ago

When trying to whitelist an AWS security group in a mongodbatlas_project_ip_whitelist resource it says An argument named "aws_security_group" is not expected here. After looking through the repository it seems like this should be a valid argument.

My mongodbatlas_project_ip_whitelist resource looks like this:

resource "mongodbatlas_project_ip_whitelist" "mongodb_whitelist" {
 project_id = "${mongodbatlas_project.mongodb_atlas_playlist_project.id}"
 aws_security_group = "${aws_security_group.mongodb_lambda_security_group.id}"
}

After looking at the docs in this repo I compared them to the docs on the Terraform site. Each version shows two different things for this resource, do you know why this might be?

themantissa commented 4 years ago

@MontgomeryWatts that's because what is in the repo is a master branch and may contain code and documentation not yet released. You are likely using version 0.3.1 and that does not contain support for aws security groups yet. We hope to release 0.4.0 today, which will (I'll post a notice in the issues section of this repo). You an always see what is included in the current version released by checking the CHANGELOG file.