Resource: aws_datasync_location_fsx_ontap_file_system

Terraform resource for managing an AWS DataSync Location FSx Ontap File System.

Example Usage

Basic Usage

resource "aws_datasync_location_fsx_ontap_file_system" "test" {
  fsx_filesystem_arn          = aws_fsx_ontap_file_system.test.arn
  security_group_arns         = [aws_security_group.test.arn]
  storage_virtual_machine_arn = aws_fsx_ontap_storage_virtual_machine.test.arn

  protocol {
    nfs {
      mount_options {
        version = "NFS3"
      }
    }
  }
}

Argument Reference

The following arguments are required:

The following arguments are optional:

Protocol

NFS

NFS Mount Options

SMB

SMB Mount Options

Attribute Reference

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

Import

In Terraform v1.5.0 and later, use an import block to import aws_datasync_location_fsx_ontap_file_system using the DataSync-ARN#FSx-ontap-svm-ARN. For example:

import {
  to = aws_datasync_location_fsx_ontap_file_system.example
  id = "arn:aws:datasync:us-west-2:123456789012:location/loc-12345678901234567#arn:aws:fsx:us-west-2:123456789012:storage-virtual-machine/svm-12345678abcdef123"
}

Using terraform import, import aws_datasync_location_fsx_ontap_file_system using the DataSync-ARN#FSx-ontap-svm-ARN. For example:

% terraform import aws_datasync_location_fsx_ontap_file_system.example arn:aws:datasync:us-west-2:123456789012:location/loc-12345678901234567#arn:aws:fsx:us-west-2:123456789012:storage-virtual-machine/svm-12345678abcdef123