Terraform is a tool to deploy resources on cloud
It is an infrastructure as code tool
Generally the plugins are available at
https://registry.terraform.io/
To use the plugins which are archived and not available in the terraform registry
Follow the steps a small tweak is necessary
- Currently the cloudstack plugin is archived
https://github.com/hashicorp/terraform-provider-cloudstack
- Download the terrform provider for cloudstack based on the os you are running
https://releases.hashicorp.com/terraform-provider-cloudstack/0.3.0/
- On linux and mac
Move it
.terraform.d/plugins/localdomain/provider/cloudstack/0.3.0/linux_amd64
or
.terraform.d/plugins/localdomain/provider/cloudstack/0.3.0/darwin_amd64
- sample gist
https://gist.github.com/kiranchavala/ce250d57b49ab1e8112ee0abdc64ff1c
-
terraform init
-
terraform apply
useful links
https://www.youtube.com/watch?v=0O5yqQqiQRQ&t=746s
https://www.terraform.io/docs/cli/config/config-file.html
https://www.ibm.com/cloud/blog/setting-terraform-ibm-cloud-provider-windows
https://stackoverflow.com/questions/63531360/terraform-manually-installed-plugin-fails