Data Source: awsEbsSnapshotIds
Use this data source to get a list of EBS Snapshot IDs matching the specified criteria.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsEbsSnapshotIds.DataAwsEbsSnapshotIds(this, "ebs_volumes", {
filter: [
{
name: "volume-size",
values: ["40"],
},
{
name: "tag:Name",
values: ["Example"],
},
],
owners: ["self"],
});
Argument Reference
The following arguments are supported:
-
owners
- (Optional) Returns the snapshots owned by the specified owner id. Multiple owners can be specified. -
restorableByUserIds
- (Optional) One or more AWS accounts IDs that can create volumes from the snapshot. -
filter
- (Optional) One or more name/value pairs to filter off of. There are several valid keys, for a full reference, check out describe-volumes in the AWS CLI reference.
Attributes Reference
id
- AWS Region.ids
- Set of EBS snapshot IDs, sorted by creation time in descending order.
Timeouts
read
- (Default20M
)