Alicloud (Alibaba Cloud) terraform provider
This is the official repository for the Alicloud terraform provider. Currently it 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 banaries (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.
Example modules can be found in the terraform/examples directory.
- install terraform: https://www.terraform.io/intro/getting-started/install.html
- install golang: https://golang.org/doc/install
- install glide: https://github.com/Masterminds/glide
- finally:
cd $GOPATH
mkdir -p src/github.com/alibaba
cd $GOPATH/src/github.com/alibaba
git clone https://github.com/alibaba/terraform-provider.git
# switch to project
cd $GOPATH/src/github.com/alibaba/terraform-provider
# get all dependencies and install modules
go get ./...
glide up
sudo -E "PATH=$PATH" make all
terraform get
# set the creds
export ALICLOUD_ACCESS_KEY="***"
export ALICLOUD_SECRET_KEY="***"
export ALICLOUD_REGION="***"
# you're good to start rocking
# alicloud.tf contains the default example
terraform plan
# terraform apply
# terraform destroy
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-1
For more about the regions and availability zones, use data source alicloud_regions
and alicloud_zones
.
The latest supported product document as follows:
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<YOUR_TF_VERSION_HERE>
cd -
# rebuild
sudo -E "PATH=$PATH" make all
- If you are not sure or have any doubts, feel free to ask and/or submit an issue or PR. We appreciate all contributions and don't want to create artificial obstacles that get in the way.
- Contributions are welcome and will be merged via PRs.
- demonwy
- heww(heww0205@gmail.com)
- ShuWei
- WangYuelucky(wangyuelucky@126.com)
- GuiMin(heguimin36@163.com)
- This project is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.
- Terraform Document: https://www.terraform.io/intro/
- Terraform Registry Of Alicloud: https://registry.terraform.io/modules/alibaba
- Terraform Alicloud Examples: Official Examples , Other Examples