[DEPRECATED] This repo has been deprecated and please access https://github.com/terraform-providers/terraform-provider-alicloud
[DEPRECATED] This repo has been deprecated and please access https://github.com/terraform-providers/terraform-provider-alicloud
This is the official repository of the Alicloud Terraform provider. It currently supports Terraform version ≥ v0.8.2.
If you are not planning to contribute to this repo, you can download the compiled binaries from https://github.com/alibaba/terraform-provider/releases and move the binaries (bin/terraform-provider-alicloud) into the folder under the Terraform PATH such as /usr/local/terraform.
Alternatively, the provider can be installed as described in the developer notes.
This way you will be able to sync the repo as active development is going on.
-> Note: When you use Terraform on a Windows computer, please install golang first,
otherwise you might get this issue
(the bug appeared in the version 1.8.1 and was fixed in the version 1.11.0).
Example modules can be found in the terraform/examples directory.
go get golang.org/x/tools/cmd/goimports…cn-qingdao
cn-beijing
cn-zhangjiakou
cn-huhehaote
cn-hangzhou
cn-shanghai
cn-shenzhen
cn-hongkong
ap-northeast-1
ap-southeast-1
ap-southeast-2
ap-southeast-3
ap-southeast-5
ap-south-1
us-east-1
us-west-1
me-east-1
eu-central-1For more information about the regions and availability zones, please use the data sources alicloud_regions and alicloud_zones.
The most recent documentation is available here:
Before making a release, the resources and data sources are tested automatically with acceptance tests (the tests are located in the alicloud/*_test.go files). You can run them by entering the following instructions in a terminal:
cd $GOPATH/src/github.com/alibaba/terraform-provider
export ALICLOUD_ACCESS_KEY=xxx
export ALICLOUD_SECRET_KEY=xxx
export ALICLOUD_REGION=xxx
export ALICLOUD_ACCOUNT_ID=xxx
export outfile=gotest.out
TF_ACC=1 TF_LOG=INFO go test ./alicloud -v -run=TestAccAlicloud -timeout=1440m | tee $outfile
go2xunit -input $outfile -output $GOPATH/tests.xml-> Note: The last line is optional, it allows to convert test results into a XML format compatible with xUnit.
Because some features are not available in all regions, the following environment variables can be set in order to skip tests that use these features:
Error configuring: 1 error(s) occurred:
* Incompatible API version with plugin. Plugin version: 2, Ours: 1
# fix by manually setting the branch in the sources
cd src/github.com/hashicorp/terraform/
git checkout v
cd -
# rebuild
sudo -E "PATH=$PATH" make allNo open issues yet, or sync has not completed.