Ontap Volume
Manages a FSx ONTAP Volume. See the FSx ONTAP User Guide for more information.
Example Usage
Basic Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.fsx.OntapVolume;
import com.pulumi.aws.fsx.OntapVolumeArgs;
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 OntapVolume("test", OntapVolumeArgs.builder()
.junctionPath("/test")
.sizeInMegabytes(1024)
.storageEfficiencyEnabled(true)
.storageVirtualMachineId(aws_fsx_ontap_storage_virtual_machine.test().id())
.build());
}
}
Using Tiering Policy
Additional information on tiering policy with ONTAP Volumes can be found in the FSx ONTAP Guide.
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.fsx.OntapVolume;
import com.pulumi.aws.fsx.OntapVolumeArgs;
import com.pulumi.aws.fsx.inputs.OntapVolumeTieringPolicyArgs;
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 OntapVolume("test", OntapVolumeArgs.builder()
.junctionPath("/test")
.sizeInMegabytes(1024)
.storageEfficiencyEnabled(true)
.storageVirtualMachineId(aws_fsx_ontap_storage_virtual_machine.test().id())
.tieringPolicy(OntapVolumeTieringPolicyArgs.builder()
.name("AUTO")
.coolingPeriod(31)
.build())
.build());
}
}
Import
FSx ONTAP volume can be imported using the id
, e.g.,
$ pulumi import aws:fsx/ontapVolume:OntapVolume example fsvol-12345678abcdef123
Properties
Describes the file system for the volume, e.g. fs-12345679
Specifies the FlexCache endpoint type of the volume, Valid values are NONE
, ORIGIN
, CACHE
. Default value is NONE
. These can be set by the ONTAP CLI or API and are use with FlexCache feature.
Specifies the location in the storage virtual machine's namespace where the volume is mounted. The junction_path must have a leading forward slash, such as /vol3
Specifies the type of volume, Valid values are RW
, DP
, and LS
. Default value is RW
. These can be set by the ONTAP CLI or API. This setting is used as part of migration and replication Migrating to Amazon FSx for NetApp ONTAP
Specifies the volume security style, Valid values are UNIX
, NTFS
, and MIXED
. Default value is UNIX
.
Specifies the size of the volume, in megabytes (MB), that you are creating.
Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume.
Specifies the storage virtual machine in which to create the volume.
The type of volume, currently the only valid value is ONTAP
.