Resource: aws_fsx_ontap_volume

Manages a FSx ONTAP Volume. See the FSx ONTAP User Guide for more information.

Example Usage

Basic Usage

resource "aws_fsx_ontap_volume" "test" {
  name                       = "test"
  junction_path              = "/test"
  size_in_megabytes          = 1024
  storage_efficiency_enabled = true
  storage_virtual_machine_id = aws_fsx_ontap_storage_virtual_machine.test.id
}

Using Tiering Policy

Additional information on tiering policy with ONTAP Volumes can be found in the FSx ONTAP Guide.

resource "aws_fsx_ontap_volume" "test" {
  name                       = "test"
  junction_path              = "/test"
  size_in_megabytes          = 1024
  storage_efficiency_enabled = true
  storage_virtual_machine_id = aws_fsx_ontap_storage_virtual_machine.test.id

  tiering_policy {
    name           = "AUTO"
    cooling_period = 31
  }
}

Argument Reference

This resource supports the following arguments:

Aggregate Configuration

SnapLock Configuration

Autocommit Period

SnapLock Retention Period

Retention Period

Tiering Policy

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 ONTAP volume using the id. For example:

import {
  to = aws_fsx_ontap_volume.example
  id = "fsvol-12345678abcdef123"
}

Using terraform import, import FSx ONTAP volume using the id. For example:

% terraform import aws_fsx_ontap_volume.example fsvol-12345678abcdef123