No description
  • Go 98.3%
  • HTML 1.4%
  • Shell 0.2%
  • Makefile 0.1%
Find a file
2020-09-27 10:51:30 +08:00
baiducloud Add FEATURES: New Resource: resource_baiducloud_ccev2_instance 2020-09-27 10:51:30 +08:00
examples Add FEATURES: New Resource: resource_baiducloud_ccev2_instance 2020-09-27 10:51:30 +08:00
gendocs Fix issue https://github.com/baidubce/terraform-provider-baiducloud/issues/1 checkpoints 1-3 2020-02-05 09:53:18 +08:00
scripts remove unneeded 2020-02-18 11:17:14 -08:00
vendor Add FEATURES: New Resource: resource_baiducloud_ccev2_instance 2020-09-27 10:51:30 +08:00
website Add FEATURES: New Resource: resource_baiducloud_ccev2_instance 2020-09-27 10:51:30 +08:00
.gitignore Initial commit 2019-10-15 10:21:47 +08:00
CHANGELOG.md Add FEATURES: New Resource: resource_baiducloud_ccev2_instance 2020-09-27 10:51:30 +08:00
GNUmakefile Fix issue https://github.com/baidubce/terraform-provider-baiducloud/issues/1 checkpoints 1-3 2020-02-05 09:53:18 +08:00
go.mod Add FEATURES: New Resource: resource_baiducloud_ccev2_instance 2020-09-27 10:51:30 +08:00
go.sum Add FEATURES: New Resource: resource_baiducloud_ccev2_instance 2020-09-27 10:51:30 +08:00
LICENSE Initial commit 2019-10-15 10:21:47 +08:00
main.go Initial commit 2019-10-15 10:21:47 +08:00
README.md Update README.md 2020-05-07 13:15:48 -04:00

Terraform Provider

Requirements

  • Terraform 0.10.x
  • Go 1.11 (to build the provider plugin)

Usage

# For example, restrict baiducloud version in 0.1.x
provider "baiducloud" {
  version = "~> 0.1"
}

Building The Provider

Clone repository to: $GOPATH/src/github.com/terraform-providers/terraform-provider-baiducloud

$ mkdir -p $GOPATH/src/github.com/terraform-providers; cd $GOPATH/src/github.com/terraform-providers
$ git clone git@github.com:terraform-providers/terraform-provider-baiducloud

Enter the provider directory and build the provider

$ cd $GOPATH/src/github.com/terraform-providers/terraform-provider-baiducloud
$ make build

Using the provider

Fill in for each provider

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (version 1.11+ is required). You'll also need to correctly setup a GOPATH, as well as adding $GOPATH/bin to your $PATH.

To compile the provider, run make build. This will build the provider and put the provider binary in the $GOPATH/bin directory.

$ make build
...
$ $GOPATH/bin/terraform-provider-baiducloud
...

In order to test the provider, you can simply run make test.

$ make test

In order to run the full suite of Acceptance tests, run make testacc.

Note: Acceptance tests create real resources, and often cost money to run.

$ make testacc