README
¶
Terraform Provider For Cdnetworks
-
Tutorials: https://www.terraform.io
-
Mailing list: Google Groups
Requirements
Usage
Build from source code
Clone repository to: $GOPATH/src/github.com/cdnetworks-api/terraform-provider-cdnetworks
$ mkdir -p $GOPATH/src/github.com/cdnetworks-api
$ cd $GOPATH/src/github.com/cdnetworks-api
$ git clone https://github.com/cdnetworks-api/terraform-provider-cdnetworks.git
$ cd terraform-provider-cdnetworks
$ 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-Cdnetworks is under the Mozilla Public License 2.0. See the LICENSE file for details.
Documentation
¶
There is no documentation for this package.