alicloud_ecs_snapshots

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

Example Usage

Basic Usage

data "alicloud_ecs_snapshots" "example" {
  ids        = ["s-bp1fvuxxxxxxxx"]
  name_regex = "tf-test"
}

output "first_ecs_snapshot_id" {
  value = data.alicloud_ecs_snapshots.example.snapshots.0.id
}

Argument Reference

The following arguments are supported:

Argument Reference

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