選取您的 Cookie 偏好設定

我們使用提供自身網站和服務所需的基本 Cookie 和類似工具。我們使用效能 Cookie 收集匿名統計資料,以便了解客戶如何使用我們的網站並進行改進。基本 Cookie 無法停用,但可以按一下「自訂」或「拒絕」以拒絕效能 Cookie。

如果您同意,AWS 與經核准的第三方也會使用 Cookie 提供實用的網站功能、記住您的偏好設定,並顯示相關內容,包括相關廣告。若要接受或拒絕所有非必要 Cookie,請按一下「接受」或「拒絕」。若要進行更詳細的選擇,請按一下「自訂」。

AWS::DataSync::LocationFSxONTAP

焦點模式

在本頁面

AWS::DataSync::LocationFSxONTAP - AWS CloudFormation
此頁面尚未翻譯為您的語言。 請求翻譯
篩選條件查看

The AWS::DataSync::LocationFSxONTAP resource creates an endpoint for an Amazon FSx for NetApp ONTAP file system. AWS DataSync can access this endpoint as a source or destination location.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::DataSync::LocationFSxONTAP", "Properties" : { "Protocol" : Protocol, "SecurityGroupArns" : [ String, ... ], "StorageVirtualMachineArn" : String, "Subdirectory" : String, "Tags" : [ Tag, ... ] } }

YAML

Type: AWS::DataSync::LocationFSxONTAP Properties: Protocol: Protocol SecurityGroupArns: - String StorageVirtualMachineArn: String Subdirectory: String Tags: - Tag

Properties

Protocol

Specifies the data transfer protocol that DataSync uses to access your Amazon FSx file system.

Required: No

Type: Protocol

Update requires: No interruption

SecurityGroupArns

Specifies the Amazon Resource Names (ARNs) of the security groups that DataSync can use to access your FSx for ONTAP file system. You must configure the security groups to allow outbound traffic on the following ports (depending on the protocol that you're using):

  • Network File System (NFS): TCP ports 111, 635, and 2049

  • Server Message Block (SMB): TCP port 445

Your file system's security groups must also allow inbound traffic on the same port.

Required: Yes

Type: Array of String

Minimum: 1

Maximum: 128 | 5

Update requires: Replacement

StorageVirtualMachineArn

Specifies the ARN of the storage virtual machine (SVM) in your file system where you want to copy data to or from.

Required: Yes

Type: String

Pattern: ^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):fsx:[a-z\-0-9]+:[0-9]{12}:storage-virtual-machine/fs-[0-9a-f]+/svm-[0-9a-f]{17,}$

Maximum: 162

Update requires: Replacement

Subdirectory

Specifies a path to the file share in the SVM where you want to transfer data to or from.

You can specify a junction path (also known as a mount point), qtree path (for NFS file shares), or share name (for SMB file shares). For example, your mount path might be /vol1, /vol1/tree1, or /share1.

Note

Don't specify a junction path in the SVM's root volume. For more information, see Managing FSx for ONTAP storage virtual machines in the Amazon FSx for NetApp ONTAP User Guide.

Required: No

Type: String

Pattern: ^[a-zA-Z0-9_\-\+\./\(\)\$\p{Zs}]+$

Maximum: 4096

Update requires: No interruption

Tags

Specifies labels that help you categorize, filter, and search for your AWS resources. We recommend creating at least a name tag for your location.

Required: No

Type: Array of Tag

Minimum: 0

Maximum: 50

Update requires: No interruption

Return values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the location resource ARN. For example:

arn:aws:datasync:us-east-2:111222333444:location/loc-07db7abfc326c50s3

For more information about using the Ref function, see Ref.

Fn::GetAtt

The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.

FsxFilesystemArn

The ARN of the FSx for ONTAP file system in the specified location.

LocationArn

The ARN of the specified location.

LocationUri

The URI of the specified location.

Examples

Creating an FSx for ONTAP location with NFS access

The following example creates a location for an FSx for ONTAP file system that DataSync can access using NFS.

JSON

{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "Specifies a location for an Amazon FSx for ONTAP file system that DataSync can access using NFS.", "Resources": { "LocationFSxONTAP": { "Type": "AWS::DataSync::LocationFSxONTAP", "Properties": { "Protocol": { "NFS": { "MountOptions": { "Version": "NFS3" } } }, "SecurityGroupArns": [ "arn:aws:ec2:us-east-2:11122233344:security-group/sg-1234567890abcdef2" ], "StorageVirtualMachineArn": "arn:aws:fsx:us-east-1:11122233344:storage-virtual-machine/fs-abcdef01234567890/svm-021345abcdef6789", "Subdirectory": "/vol1" } } } }

YAML

AWSTemplateFormatVersion: 2010-09-09 Description: Specifies a location for an Amazon FSx for ONTAP file system that DataSync can access using NFS. Resources: LocationFSxONTAP: Type: AWS::DataSync::LocationFSxONTAP Properties: Protocol: NFS: MountOptions: Version: NFS3 SecurityGroupArns: - arn:aws:ec2:us-east-2:11122233344:security-group/sg-1234567890abcdef2 StorageVirtualMachineArn: arn:aws:fsx:us-east-1:11122233344:storage-virtual-machine/fs-abcdef01234567890/svm-021345abcdef6789 Subdirectory: /vol1

Creating an FSx for ONTAP location with SMB access

The following example creates a location for an FSx for ONTAP file system that DataSync can access using SMB.

JSON

{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "Specifies a location for an Amazon FSx for ONTAP file system that DataSync can access using SMB.", "Resources": { "LocationFSxONTAP": { "Type": "AWS::DataSync::LocationFSxONTAP", "Properties": { "Protocol": { "SMB": { "Domain": "example.company", "MountOptions": { "Version": "AUTOMATIC" }, "Password": "examplepassword", "User": "exampleusername" } }, "SecurityGroupArns": [ "arn:aws:ec2:us-east-2:11122233344:security-group/sg-1234567890abcdef2" ], "StorageVirtualMachineArn": "arn:aws:fsx:us-east-1:11122233344:storage-virtual-machine/fs-abcdef01234567890/svm-021345abcdef6789", "Subdirectory": "/vol1" } } } }

YAML

AWSTemplateFormatVersion: 2010-09-09 Description: Specifies a location for an Amazon FSx for ONTAP file system that DataSync can access using SMB. Resources: LocationFSxONTAP: Type: AWS::DataSync::LocationFSxONTAP Properties: Protocol: SMB: Domain: example.company MountOptions: Version: AUTOMATIC Password: examplepassword User: exampleusername SecurityGroupArns: - arn:aws:ec2:us-east-2:11122233344:security-group/sg-1234567890abcdef2 StorageVirtualMachineArn: arn:aws:fsx:us-east-1:11122233344:storage-virtual-machine/fs-abcdef01234567890/svm-021345abcdef6789 Subdirectory: /vol1

下一個主題:

NFS

上一個主題:

Tag
隱私權網站條款Cookie 偏好設定
© 2025, Amazon Web Services, Inc.或其附屬公司。保留所有權利。