来自 terraform 官方文档:
Attributes Reference
The following attributes are exported in addition to the arguments
listed above:
regions - A list of regions. Each element contains the following
attributes:
id - ID of the region.
local_name - Name of the region in the local language.
语法是这样的:
value = "${data.alicloud_regions.current_region_ds.regions.0.id}"
我的第一个问题是我在哪里可以获得我的 local_name?
我想我无法从阿里巴巴云文档中找到它
第二个问题是在哪里放置区域 ID?
value = "${data.alicloud_regions.current_region_ds.regions.ap-southeast-5.mylocal_name}"
或者
value = "${data.alicloud_regions.current_region_ds.regions.mylocal_name.ap-southeast-5}"