datasource
hanyouqing/datasource/alicloud
terraform-alicloud-datasource
terraform-alicloud-datasource terraform-alicloud-datasource Quick Start with Demo `` git clone https://github.com/hanyouqing/terraform-alicloud-datasource.git cd terraform-alicloud-datasource/examples/demo mkdir -pv tf-jsondata export TF_DATA_DIR=./.terraform terraform init terraform apply ` Then you'll get ` alicloud_account_id = 35969087 datasource_dir = ./tf-jsondata datasource_regions = [ "region-id: {\"id\":\"cn-qingdao\",\"local_name\":\"华北 1\",\"region_id\":\"cn-qingdao\"}", ... ] ` and json files below: ` tf-jsondata/ ├── img.centos.json ├── img.ubuntu.json ├── instance-types.cn-beijing-c.json ├── instance-types.postpaid.json ├── instance-types.prepaid.json ├── regions.json └── zones.cn-beijing.json ``
| Name | Type | Description | Default |
|---|---|---|---|
| datasource_dir | string | "" | |
| region_alias | map | This variable is just a comment used to save time | {
"ap-northeast-1": "tyo",
"ap-south |
| cidr_blocks | map | 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 | {
"bj": "192.168.2.0/24",
"bom": "19 |
| demo | map | {
"availability_zone": "c",
"charge_ | |
| motd | list | [
"+++++++++++++++++++++++++++++++++++ |
motdregion_aliascidr_blocksdatasource_diralicloud_account_idregions