- Website: terraform.io
- Tutorials: learn.hashicorp.com
- Forum: discuss.hashicorp.com
- Chat: gitter
- Mailing List: Google Groups
Use make ;P
make .PHONY
╭─sinesio@NT0298 ~/Desktop/Projetos_test/TerraForm/terraform-provider-letscloud ‹main*›
╰─➤ TF_ACC=1 go test -v ./letscloud
=== RUN TestProvider
--- PASS: TestProvider (0.00s)
PASS
ok github.com/sinesiobittencourt/terraform-provider-letscloud/letscloud 0.007s
This folder encapsulates the Terraform Provider that issues API calls to the letscloud microservice.
To run the Terraform Provider locally there are a few steps to complete:
Step 1: Build the source code locally
go build -o terraform-provider-letscloud_v1.0.0
Step 2: Move the executable into the local terraform plugin folder:
cp terraform-provider-letscloud ~/.terraform.d/plugins/sinesio.com/letscloud/provider/1.0.0/linux_amd64
Note: The plugin folder may need to be created.
Step 3: From within this directory, initialize Terraform:
terraform init
Step 4: Run an apply via Terraform:
terraform apply
The output generated should look similar to the following:
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
Outputs:
vm_1_details_raw = {"Name":"M2540TCOLRus","Type":"COL","Region":"us-east-1"}
vm_1_name = M2540TCOLRus
vm_1_type = COL