Resource: aws_datasync_location_nfs

Manages an NFS Location within AWS DataSync.

Example Usage

resource "aws_datasync_location_nfs" "example" {
  server_hostname = "nfs.example.com"
  subdirectory    = "/exported/path"

  on_prem_config {
    agent_arns = [aws_datasync_agent.example.arn]
  }
}

Argument Reference

This resource supports the following arguments:

mount_options Argument Reference

The mount_options configuration block supports the following arguments:

on_prem_config Argument Reference

The on_prem_config configuration block supports the following arguments:

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_nfs using the DataSync Task Amazon Resource Name (ARN). For example:

import {
  to = aws_datasync_location_nfs.example
  id = "arn:aws:datasync:us-east-1:123456789012:location/loc-12345678901234567"
}

Using terraform import, import aws_datasync_location_nfs using the DataSync Task Amazon Resource Name (ARN). For example:

% terraform import aws_datasync_location_nfs.example arn:aws:datasync:us-east-1:123456789012:location/loc-12345678901234567