Open Zfs Volume Args
Manages an Amazon FSx for OpenZFS volume. See the FSx OpenZFS User Guide for more information.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.fsx.OpenZfsVolume("test", {
name: "testvolume",
parentVolumeId: testAwsFsxOpenzfsFileSystem.rootVolumeId,
});
import pulumi
import pulumi_aws as aws
test = aws.fsx.OpenZfsVolume("test",
name="testvolume",
parent_volume_id=test_aws_fsx_openzfs_file_system["rootVolumeId"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.Fsx.OpenZfsVolume("test", new()
{
Name = "testvolume",
ParentVolumeId = testAwsFsxOpenzfsFileSystem.RootVolumeId,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/fsx"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := fsx.NewOpenZfsVolume(ctx, "test", &fsx.OpenZfsVolumeArgs{
Name: pulumi.String("testvolume"),
ParentVolumeId: pulumi.Any(testAwsFsxOpenzfsFileSystem.RootVolumeId),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.fsx.OpenZfsVolume;
import com.pulumi.aws.fsx.OpenZfsVolumeArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new OpenZfsVolume("test", OpenZfsVolumeArgs.builder()
.name("testvolume")
.parentVolumeId(testAwsFsxOpenzfsFileSystem.rootVolumeId())
.build());
}
}
resources:
test:
type: aws:fsx:OpenZfsVolume
properties:
name: testvolume
parentVolumeId: ${testAwsFsxOpenzfsFileSystem.rootVolumeId}
Import
Using pulumi import
, import FSx Volumes using the id
. For example:
$ pulumi import aws:fsx/openZfsVolume:OpenZfsVolume example fsvol-543ab12b1ca672f33
Constructors
Properties
A boolean flag indicating whether tags for the file system should be copied to snapshots. The default value is false.
Method used to compress the data on the volume. Valid values are NONE
or ZSTD
. Child volumes that don't specify compression option will inherit from parent volume. This option on file system applies to the root volume.
Whether to delete all child volumes and snapshots. Valid values: DELETE_CHILD_VOLUMES_AND_SNAPSHOTS
. This configuration must be applied separately before attempting to delete the resource to have the desired behavior..
NFS export configuration for the root volume. Exactly 1 item. See nfs_exports
Block Below for details.
Specifies the configuration to use when creating the OpenZFS volume. See origin_snapshot
Block below for details.
The volume id of volume that will be the parent volume for the volume being created, this could be the root volume created from the aws.fsx.OpenZfsFileSystem
resource with the root_volume_id
or the id
property of another aws.fsx.OpenZfsVolume
.
The record size of an OpenZFS volume, in kibibytes (KiB). Valid values are 4
, 8
, 16
, 32
, 64
, 128
, 256
, 512
, or 1024
KiB. The default is 128
KiB.
The maximum amount of storage in gibibytes (GiB) that the volume can use from its parent.
The amount of storage in gibibytes (GiB) to reserve from the parent volume.
Specify how much storage users or groups can use on the volume. Maximum of 100 items. See user_and_group_quotas
Block Below.