AWS DataSync Location SMB

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

aws_datasync_location_smb (Terraform)

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

Example Usage from GitHub
resource "aws_datasync_location_smb" "example" {
  server_hostname = ""
  subdirectory    = "/exported/path"

  user     = "Guest"
  password = "ANotGreatPassword"
resource "aws_datasync_location_smb" "this" {
  agent_arns      = var.agent_arns
  domain          = var.domain
  password        = var.password
  server_hostname = var.server_hostname
  subdirectory    = var.subdirectory

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).


Explanation in Terraform Registry

Manages a SMB Location within AWS DataSync.

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

AWS::DataSync::LocationSMB (CloudFormation)

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

Example Usage from GitHub

An example could not be found in GitHub.


Explanation in CloudFormation Registry

The AWS::DataSync::LocationSMB resource specifies an SMB location.

Frequently asked questions

What is AWS DataSync Location SMB?

AWS DataSync Location SMB 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 SMB?

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