File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff 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
6060terraform {
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}
7471EOF
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...
You can’t perform that action at this time.
0 commit comments