Skip to content

Data Source: awsFsxOpenzfsSnapshot

Use this data source to get information about an Amazon FSx for OpenZFS Snapshot for use when provisioning new Volumes.

Example Usage

Root volume Example

/*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.dataAwsFsxOpenzfsSnapshot.DataAwsFsxOpenzfsSnapshot(this, "example", {
  filter: [
    {
      name: "volume-id",
      values: ["fsvol-073a32b6098a73feb"],
    },
  ],
  mostRecent: true,
});

Argument Reference

The following arguments are supported:

  • mostRecent - (Optional) If more than one result is returned, use the most recent snapshot.

  • snapshotIds - (Optional) Returns information on a specific snapshot_id.

  • filter - (Optional) One or more name/value pairs to filter off of. The supported names are file-system-id or volume-id.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • arn - Amazon Resource Name of the snapshot.
  • creationTime - Time that the resource was created.
  • id - Identifier of the snapshot, e.g., fsvolsnap12345678
  • name - Name of the snapshot.
  • snapshotId - ID of the snapshot.
  • tags - List of Tag values, with a maximum of 50 elements.
  • volumeId - ID of the volume that the snapshot is of.