alicloud

The alicloud connection can be used to access Alibaba Cloud resources.

connection "alicloud" "alicloud" {
access_key = "LTAI4GBVFakeKey09Kxezv66"
secret_key = "6iNPvThisIsNotARealSecretk1sZF"
}

Arguments

NameTypeRequired?Description
access_keyStringOptionalA static access key to use to authenticate.
secret_keyStringOptionalA static secret key to use to authenticate.

All arguments are optional, and a alicloud connection with no arguments will behave the same as the default connection.

Default Connection

The alicloud connection type includes an implicit, default connection (connection.alicloud.default) that will be configured using either of the following environment variables:

1.ALIBABACLOUD_ACCESS_KEY_ID and ALIBABACLOUD_ACCESS_KEY_SECRET.

connection "alicloud" "default" {
access_key = env("ALIBABACLOUD_ACCESS_KEY_ID")
secret_key = env("ALIBABACLOUD_ACCESS_KEY_SECRET")
}

2.ALICLOUD_ACCESS_KEY_ID and ALICLOUD_ACCESS_KEY_SECRET.

connection "alicloud" "default" {
access_key = env("ALICLOUD_ACCESS_KEY_ID")
secret_key = env("ALICLOUD_ACCESS_KEY_SECRET")
}

3.ALICLOUD_ACCESS_KEY and ALICLOUD_SECRET_KEY.

connection "alicloud" "default" {
access_key = env("ALICLOUD_ACCESS_KEY")
secret_key = env("ALICLOUD_SECRET_KEY")
}