Creates a snapshot of an FSx OpenZFS child volume, defines the child volume, and the associated file system.

Terraform Template

resource "aws_fsx_openzfs_file_system" "example" {
  deployment_type = "SINGLE_AZ_1"
  storage_capacity = 64
  subnet_ids = ["aws_subnet.example.id"]
  throughput_capacity = 64
}

resource "aws_fsx_openzfs_snapshot" "example" {
  name = "example"
  volume_id = aws_fsx_openzfs_volume.example.id
}

resource "aws_fsx_openzfs_volume" "example" {
  name = "example"
  parent_volume_id = aws_fsx_openzfs_file_system.example.root_volume_id
}