Resource: aws_storagegateway_smb_file_share

Manages an AWS Storage Gateway SMB File Share.

Example Usage

Active Directory Authentication

resource "aws_storagegateway_smb_file_share" "example" {
  authentication = "ActiveDirectory"
  gateway_arn    = aws_storagegateway_gateway.example.arn
  location_arn   = aws_s3_bucket.example.arn
  role_arn       = aws_iam_role.example.arn
}

Guest Authentication

resource "aws_storagegateway_smb_file_share" "example" {
  authentication = "GuestAccess"
  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:

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

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

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

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