Data Source: aws_ebs_snapshot_ids#
Provides a list of EBS snapshot IDs matching the specified criteria.
Example Usage#
data "aws_ebs_snapshot_ids" "ebs_snapshot_ids" {
owners = ["self"]
filter {
name = "volume-size"
values = ["40"]
}
filter {
name = "tag:Name"
values = ["Example"]
}
}
Argument Reference#
The following arguments are supported:
filter
- (Optional) One or more name/value pairs to use as filters.- Valid values: See supported names and values in EC2 API documentation
owners
- (Optional) List of the snapshot owners.- Valid values: Project ID (
project@customer
) orself
- Valid values: Project ID (
restorable_by_user_ids
- (Optional) List of the project IDs (project@customer
), in which volumes can be created from snapshots.
Attribute Reference#
In addition to all arguments above, the following attributes are exported:
id
- The region.ids
- Set of EBS snapshot IDs, sorted by creation time in descending order.