Categorygithub.com/wangsu-api/terraform-provider-wangsu
modulepackage
1.0.18
Repository: https://github.com/wangsu-api/terraform-provider-wangsu.git
Documentation: pkg.go.dev

# README

Terraform Provider For wangsu

stars Forks Go Report Card Releases License Issues

logo
Wangsu Infrastructure for Terraform.

Requirements

  • Terraform 0.13.x
  • Go 1.17.x (to build the provider plugin)

Usage

Build from source code

Clone repository to: $GOPATH/src/github.com/wangsu-api/terraform-provider-wangsu

$ mkdir -p $GOPATH/src/github.com/wangsu-api
$ cd $GOPATH/src/github.com/wangsu-api
$ git clone https://github.com/wangsu-api/terraform-provider-wangsu.git
$ cd terraform-provider-wangsu
$ go build .

If you're building the provider, follow the instructions to install it as a plugin. After placing it into your plugins directory, run terraform init to initialize it.

Configure proxy info (optional)

If you are beind a proxy, for example, in a corporate network, you must set the proxy environment variables correctly. For example:

export http_proxy=http://your-proxy-host:your-proxy-port  # This is just an example, use your real proxy settings!
export https_proxy=$http_proxy
export HTTP_PROXY=$http_proxy
export HTTPS_PROXY=$http_proxy

Run demo

You can edit your own terraform configuration files. Learn examples from examples directory.

Now you can try your terraform demo:

terraform init
terraform plan
terraform apply

If you want to destroy the resource, make sure the instance is already in running status, otherwise the destroy might fail.

terraform destroy

Developer Guide

DEBUG

You will need to set an environment variable named TF_LOG, for more info please refer to Terraform official doc:

export debuggable=true

In your source file, import the standard package log and print the message such as:

log.Println("[DEBUG] the message and some import values: %v", importantValues)

License

Terraform-Provider-Wangsu is under the Mozilla Public License 2.0. See the LICENSE file for details.

# Packages

No description provided by the author