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

Support for AWS security groups in mongodbatlas_project_ip_whitelist #67

Closed sjauld closed 4 years ago

sjauld commented 4 years ago

The Atlas API supports adding security groups to a Project IP Whitelist, by specifying the security group ID in the cidr_block field.

However since we validate that cidr_block is a CIDR block, we can't input security groups here.

I'll throw together a quick PR.

sjauld commented 4 years ago

Actually, on further inspection, the Atlas API returns security group IDs in the cidr_block field, but doesn't accept them when you post it. I'll raise a ticket with them.

sjauld commented 4 years ago

No ticketing system exists for the API, but feel free to +1 this tweet if you want to support my request 👍 https://twitter.com/sjogrady/status/1194116135551029251

themantissa commented 4 years ago

Security group support was actually very recently added to the MongoDB Atlas IP Whitelist resource. We have it on our roadmap to add support for it via the Provider as soon as we can schedule engineering resources to tackle it.

For future reference, per the README, feature requests can be made via https://feedback.mongodb.com for both MongoDB Atlas (and its API) as well as the Terraform provider.

I'll leave this open until we add support and we'll post here when it's added.