https://github.com/pelotech/terraform-provider-mongodb-users
Terraform provider for managing users on a self-hosted MongoDB instance
https://github.com/pelotech/terraform-provider-mongodb-users
Last synced: 5 months ago
JSON representation
Terraform provider for managing users on a self-hosted MongoDB instance
- Host: GitHub
- URL: https://github.com/pelotech/terraform-provider-mongodb-users
- Owner: pelotech
- Created: 2024-04-23T21:55:15.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-29T21:58:11.000Z (about 2 years ago)
- Last Synced: 2024-04-29T23:13:42.773Z (about 2 years ago)
- Language: Go
- Size: 11.9 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terraform Provider MongoDb-Users
### DO NOT USE THIS PROVIDER IT IS IN ACTIVE DEVELOPMENT AND MEANT TO BE CONSUMED AS A CROSSPLANE PROVIDER
A terraform provider specifically for managing users on self-hosted MongoDB instances via Crossplane
Current MongoDb providers either target a specific cloud provider offering (Atlas, DocumentDb, CosmosDb) or are incompatible with the requirements for conversion into a crossplane provider.
#### Development
To open a shell with the project dependencies:
```shell
env NIXPKGS_ALLOW_UNFREE=1 devenv --impure shell
```
-
To run a mongodb instance to test this project against:
| :warning: WARNING |
|:---------------------------|
| THIS BUILDS A MONGODB INSTANCE FROM SOURCE AND CAN TAKE 40+ MINS ON FIRST RUN |
```shell
env NIXPKGS_ALLOW_UNFREE=1 devenv --impure up
```
Alternatively there is a docker-compose in `docker-compose/docker-compose.yml`
```shell
docker compose up
```
--
Once there is a running mongodb instance you can run the acceptance tests with:
```shell
TF_ACC=1 go test ./...
```