Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
* This is in reference to the feedback from the provider review:
#68
  • Loading branch information
akshaykarle committed May 2, 2019
1 parent 4cc9255 commit a617b4a
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,6 @@ resource "mongodbatlas_cluster" "test" {
```
Also look at the example under [/examples](/examples).

### Importing resources

Currently, only `mongodbatlas_cluster`, `mongodbatlas_database_user`, `mongodbatlas_vpc_peering_connection` and `mongodbatlas_ip_whitelist` can be imported.

To import any of these resources, you need the project ID (aka. group ID). This can be found in the project
settings screen.

```
# Import a cluster
terraform import mongodbatlas_cluster.example <project ID>-<cluster name>
# Import a database user
# NOTE: you'll see a plan diff for the password, this is unavoidable since the user read API omits it
terraform import mongodbatlas_database_user.example <project ID>-<username>
# Import an ip whitelist
terraform import mongodbatlas_ip_whitelist.example <project ID>-<cidr>
# Import an vpc peering
# specify the peering connection id( pcx-xxxxxxxxx )
terrform import mongodbatlas_vpc_peering_connection.example <project ID>-<pcx id>
```

## Building the Provider
Clone and build the repository

Expand All @@ -59,22 +36,13 @@ go get github.com/akshaykarle/terraform-provider-mongodbatlas
make build
```

Symlink the binary to your terraform plugins directory:

```sh
ln -s $GOPATH/bin/terraform-provider-mongodbatlas ~/.terraform.d/plugins/
```

## Updating the Provider

```sh
go get -u github.com/akshaykarle/terraform-provider-mongodbatlas
make build
```

## NOTE
The `mongodbatlas_container` resource does not destroy the container (vpc) in mongo atlas. This is due to a limitation of the mongo atlas API as it doesn't support deleting this resource.

## Contributing
* Install project dependencies: `go get github.com/kardianos/govendor`
* Run tests: `make test`
Expand Down

0 comments on commit a617b4a

Please sign in to comment.