docs/alicloud.md
You can either edit your alicloud config directly, (usually it is ~/.aliyun/config.json)
or run aliyun configure and enter the credentials when prompted.
Example:
{
"current": "default",
"profiles": [
{
"name": "default",
"mode": "AK",
"access_key_id": "LTA***",
"access_key_secret": "mrZ***",
"region_id": "cn-hangzhou",
"output_format": "json",
"language": "en"
}
],
"meta_path": ""
}
Terraformer will pick up the profile name specified in the --profile parameter.
It defaults to the first config in the config array.
terraformer import alicloud --resources=ecs --regions=ap-southeast-3 --profile=default
List of supported AliCloud resources:
dns
alicloud_dnsalicloud_dns_recordecs
alicloud_instancekeypair
alicloud_key_pairnat
alicloud_nat_gatewaypvtz
alicloud_pvtz_zonealicloud_pvtz_zone_attachmentalicloud_pvtz_zone_recordram
alicloud_ram_rolealicloud_ram_role_policy_attachmentrds
alicloud_db_instancesg
alicloud_security_groupalicloud_security_group_ruleslb
alicloud_slbalicloud_slb_server_groupalicloud_slb_listenervpc
alicloud_vpcvswitch
alicloud_vswitch