Skip to content

hartl3y94/terraform-provider-letscloud

 
 
Terraform logo

Terraform Provider for LetsCloud

Forums pre-commit.ci status Build Status

FOSSA Status

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.

Running the example

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

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 90.2%
  • HCL 5.7%
  • Makefile 4.1%