Skip to content

Commit 3ab0943

Browse files
committed
docs: imrpove README in order to tell how to make install and use local provider
1 parent 3844fe5 commit 3ab0943

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ First install the terraform provider binary into your local plugin repository:
4646
# Set your target environment (OS_architecture): linux_amd64, darwin_amd64...
4747
$ export ENV="linux_amd64"
4848
$ make build
49-
...
5049
$ mkdir -p ~/.terraform.d/plugins/terraform.local/local/ovh/0.0.1/$ENV
5150
$ cp $GOPATH/bin/terraform-provider-ovh ~/.terraform.d/plugins/terraform.local/local/ovh/0.0.1/$ENV/terraform-provider-ovh_v0.0.1
5251
```
@@ -57,6 +56,7 @@ Then create a terraform configuration using this exact provider:
5756
$ mkdir ~/test-terraform-provider-ovh
5857
$ cd ~/test-terraform-provider-ovh
5958
$ cat > main.tf <<EOF
59+
# Configure the OVHcloud Provider
6060
terraform {
6161
required_providers {
6262
ovh = {
@@ -66,17 +66,14 @@ terraform {
6666
}
6767
}
6868
69-
data "ovh_me" "me" {}
70-
71-
output "me" {
72-
value = data.ovh_me.me
69+
provider "ovh" {
7370
}
7471
EOF
7572
$ export OVH_ENDPOINT="..."
7673
$ export OVH_APPLICATION_KEY="..."
7774
$ export OVH_APPLICATION_SECRET="..."
7875
$ export OVH_CONSUMER_KEY="..."
79-
$ terraform init
76+
$ rm .terraform.lock.hcl && terraform init
8077
...
8178
$ terraform apply
8279
...

0 commit comments

Comments
 (0)