infra-utils/alicloud/list_images/main.tf

17 lines
315 B
HCL

provider "alicloud" {
access_key = "${var.alicloud_access_key}"
secret_key = "${var.alicloud_secret_key}"
region = "${var.alicloud_region}"
}
data "alicloud_images" "ubuntu" {
owners = "system"
name_regex = "ubuntu"
}
/*
output "images" {
value = "${data.alicloud_images.ubuntu.images.0.id}"
}
*/