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 = "smb.example.com"
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
Parameters
-
agent_arns
required - set of string -
arn
optional computed - string -
domain
optional computed - string -
id
optional computed - string -
password
required - string -
server_hostname
required - string -
subdirectory
required - string -
tags
optional - map from string to string -
uri
optional computed - string -
user
required - string -
mount_options
list block-
version
optional - string
-
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.
Parameters
-
AgentArns
required - List -
Domain
optional - String -
MountOptions
optional - MountOptions -
Password
required - String -
ServerHostname
required - String -
Subdirectory
required - String -
User
required - String -
Tags
optional - List of Tag
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.