Skip to content

Commit

Permalink
Merge pull request #17 from RulerOf/patch-1
Browse files Browse the repository at this point in the history
Use go get to download the module
  • Loading branch information
akshaykarle authored May 7, 2018
2 parents be39267 + a1150ba commit fee3605
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,24 @@ resource "mongodbatlas_cluster" "test" {
Also look at the example under [/examples](/examples).

## Building the Provider
Clone repository to: `$GOPATH/src/github.com/akshaykarle/terraform-provider-mongodbatlas`
Clone and build the repository

```sh
$ mkdir -p $GOPATH/src/github.com/akshaykarle; cd $GOPATH/src/github.com/akshaykarle
$ git clone git@github.com:akshaykarle/terraform-provider-mongodbatlas
go get github.com/akshaykarle/terraform-provider-mongodbatlas
go build github.com/akshaykarle/terraform-provider-mongodbatlas
```

Enter the provider directory and build the provider
Symlink the binary to your terraform plugins directory:

```sh
$ cd $GOPATH/src/github.com/akshaykarle/terraform-provider-mongodbatlas
$ make build
ln -s $GOPATH/bin/terraform-provider-mongodbatlas ~/.terraform.d/plugins/
```

## Updating the Provider

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

## NOTE
Expand Down

0 comments on commit fee3605

Please sign in to comment.