Manages an Amazon FSx for OpenZFS volume. See the FSx OpenZFS User Guide for more information.
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
}
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
}
This resource supports the following arguments:
name
- (Required) The name of the Snapshot. You can use a maximum of 203 alphanumeric characters plus either _ or - or : or . for the name.tags
- (Optional) A map of tags to assign to the file system. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. If you have set copy_tags_to_backups
to true, and you specify one or more tags, no existing file system tags are copied from the file system to the backup.volume_id
- (Optional) The ID of the volume to snapshot. This can be the root volume or a child volume.This resource exports the following attributes in addition to the arguments above:
arn
- Amazon Resource Name of the snapshot.id
- Identifier of the snapshot, e.g., fsvolsnap-12345678
tags_all
- A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.create
- (Default 30m
)delete
- (Default 30m
)update
- (Default 30m
)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