terraform-provider-cdnetworks

command module
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

README

Terraform Provider For Cdnetworks

stars Forks Go Report Card Releases License Issues

logo
Cdnetworks 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/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

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL