Resource: aws_datasync_location_fsx_openzfs_file_system

Manages an AWS DataSync FSx OpenZfs Location.

Example Usage

resource "aws_datasync_location_fsx_openzfs_file_system" "example" {
  fsx_filesystem_arn  = aws_fsx_openzfs_file_system.example.arn
  security_group_arns = [aws_security_group.example.arn]

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

Argument Reference

This resource supports the following arguments:

protocol

nfs

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_openzfs_file_system using the DataSync-ARN#FSx-openzfs-ARN. For example:

import {
  to = aws_datasync_location_fsx_openzfs_file_system.example
  id = "arn:aws:datasync:us-west-2:123456789012:location/loc-12345678901234567#arn:aws:fsx:us-west-2:123456789012:file-system/fs-08e04cd442c1bb94a"
}

Using terraform import, import aws_datasync_location_fsx_openzfs_file_system using the DataSync-ARN#FSx-openzfs-ARN. For example:

% terraform import aws_datasync_location_fsx_openzfs_file_system.example arn:aws:datasync:us-west-2:123456789012:location/loc-12345678901234567#arn:aws:fsx:us-west-2:123456789012:file-system/fs-08e04cd442c1bb94a