AWS DataSync Location NFS

This page shows how to write Terraform and CloudFormation for DataSync Location NFS and write them securely.

aws_datasync_location_nfs (Terraform)

The Location NFS in DataSync can be configured in Terraform with the resource name aws_datasync_location_nfs. The following sections describe 2 examples of how to use the resource and its parameters.

Example Usage from GitHub

main.tf#L7
resource "aws_datasync_location_nfs" "this" {
  server_hostname = var.server_hostname
  subdirectory    = var.subdirectory
  tags            = var.tags

  dynamic "on_prem_config" {
locations.tf#L2
resource "aws_datasync_location_nfs" "example" {
  server_hostname = "nfs.example.com"
  subdirectory    = "/exported/path"

  on_prem_config {
    agent_arns = [aws_datasync_agent.example.arn]

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Manages an NFS Location within AWS DataSync.

NOTE: The DataSync Agents must be available before creating this resource.

AWS::DataSync::LocationNFS (CloudFormation)

The LocationNFS in DataSync can be configured in CloudFormation with the resource name AWS::DataSync::LocationNFS. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

Explanation in CloudFormation Registry

The AWS::DataSync::LocationNFS resource specifies a file system on a Network File System (NFS) server that can be read from or written to.

Frequently asked questions

What is AWS DataSync Location NFS?

AWS DataSync Location NFS is a resource for DataSync of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS DataSync Location NFS?

For Terraform, the niveklabs/aws and shaikis/terraform-aws-datasync source code examples are useful. See the Terraform Example section for further details.