Resource: aws_fsx_openzfs_snapshot

Manages an Amazon FSx for OpenZFS volume. See the FSx OpenZFS User Guide for more information.

Example Usage

Root volume Example

resource "aws_fsx_openzfs_snapshot" "example" {
  name      = "example"
  volume_id = aws_fsx_openzfs_file_system.example.root_volume_id
}

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

Child volume Example

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
}

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

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import FSx OpenZFS snapshot using the id. For example:

import {
  to = aws_fsx_openzfs_snapshot.example
  id = "fs-543ab12b1ca672f33"
}

Using terraform import, import FSx OpenZFS snapshot using the id. For example:

% terraform import aws_fsx_openzfs_snapshot.example fs-543ab12b1ca672f33