A way to enable the Data API via Terraform
I just noticed that MongoDB Data API is no longer in beta (Congrats!). It think it would be quite useful if the there was a way to enable this option programmatically via Terraform.
-
Jakob Heuser commented
I'm not the original poster, but the primary reason for us is Atlas Serverless.
When provisioning an Atlas Serverless environment for testing, you need the Data API so that you're not making wire protocol connections to Atlas. Being able to create this endpoint in Terraform means that you can continue to use IaC tools without an extra step.
-
AdminZuhair (Admin, MongoDB) commented
Thanks Etienne. Good to learn more about this use case, can you share more? Also, I wonder if there is a better place to accomplish what you seek outside of Terraform since given declarative nature of terraform apply / destroy commands suspect these may have unintended consequences to your database queries.
If you are open to brainstorming more feel free to send me an email at zuhair.ahmed@mongodb.com and we can find time to chat more live.