Resource: aws_datasync_location_smb

Manages a SMB Location within AWS DataSync.

Example Usage

resource "aws_datasync_location_smb" "example" {
  server_hostname = "smb.example.com"
  subdirectory    = "/exported/path"

  user     = "Guest"
  password = "ANotGreatPassword"

  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:

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

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

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

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