1 Answer
- Newest
- Most votes
- Most comments
0
You should consider looking at some of the community created MongoDB providers. While I have not tested them, the below provider supports User and Role creation and mutation from Terraform.
Using a provider instead of null resource or level exec would be preferred.
https://registry.terraform.io/providers/Kaginari/mongodb/latest/docs/resources/database_user
answered a month ago
Relevant content
- asked 22 days ago
- Accepted Answerasked 10 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago