Resource: aws_storagegateway_nfs_file_share

Manages an AWS Storage Gateway NFS File Share.

Example Usage

resource "aws_storagegateway_nfs_file_share" "example" {
  client_list  = ["0.0.0.0/0"]
  gateway_arn  = aws_storagegateway_gateway.example.arn
  location_arn = aws_s3_bucket.example.arn
  role_arn     = aws_iam_role.example.arn
}

Argument Reference

This resource supports the following arguments:

nfs_file_share_defaults

Files and folders stored as Amazon S3 objects in S3 buckets don't, by default, have Unix file permissions assigned to them. Upon discovery in an S3 bucket by Storage Gateway, the S3 objects that represent files and folders are assigned these default Unix permissions.

cache_attributes

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 aws_storagegateway_nfs_file_share using the NFS File Share Amazon Resource Name (ARN). For example:

import {
  to = aws_storagegateway_nfs_file_share.example
  id = "arn:aws:storagegateway:us-east-1:123456789012:share/share-12345678"
}

Using terraform import, import aws_storagegateway_nfs_file_share using the NFS File Share Amazon Resource Name (ARN). For example:

% terraform import aws_storagegateway_nfs_file_share.example arn:aws:storagegateway:us-east-1:123456789012:share/share-12345678