alicloud_ecs_image_components

This data source provides the Ecs Image Components of the current Alibaba Cloud user.

Example Usage

Basic Usage

data "alicloud_ecs_image_components" "ids" {
  ids = ["example_id"]
}
output "ecs_image_component_id_1" {
  value = data.alicloud_ecs_image_components.ids.components.0.id
}

data "alicloud_ecs_image_components" "nameRegex" {
  name_regex = "^my-ImageComponent"
}
output "ecs_image_component_id_2" {
  value = data.alicloud_ecs_image_components.nameRegex.components.0.id
}

Argument Reference

The following arguments are supported:

Argument Reference

The following attributes are exported in addition to the arguments listed above: