- Getting Started
- Usage
- Documentation
- Examples
The ZStack provider is used to interact with the resources supported by ZStack Cloud, a powerful cloud management platform. This provider allows you to manage various cloud resources such as virtual machines, networks, storage, and more. It provides a seamless integration with Terraform, enabling you to define and manage your cloud infrastructure as code.
Terraform version | minimum provider version | maximum provider version |
---|---|---|
>= 1.5.x | 1.0.0 | latest |
Please see instructions on how to configure the ZStack Cloud Provider.
The ZStack Provider for Terraform is the work of many contributors. We appreciate your help!
If you wish to work on the provider, you'll first need Go installed on your machine (version 1.20+ is required). You'll also need to correctly setup a GOPATH, as well as adding $GOPATH/bin
to your $PATH
.
You may also report an issue.
Here is an example of how to clone this repository and switch to the directory:
```console
$ git clone https://github.com/ZStack-Robot/terraform-provider-zstack.git
$ cd terraform-provider-zstack
```
Before making a release, the resources and data sources are tested automatically with acceptance tests (the tests are located in the zstack/*_test.go files). You can run them by entering the following instructions in a terminal:
cd $GOPATH/src/xxxx/zstack/terraform-provider-zstack
export ZSTACK_HOST=xxx
export ZSTACK_ACCOUNT_NAME=xxx
export ZSTACK_ACCOUNTP_ASSWORD=xxx
export ZSTACK_ACCESS_KEY_ID=xxx
export ZSTACK_ACCESS_KEY_SECRET=xxx
export outfile=gotest.out