用途
config_aws 命令基于参数文件在 DSA 存储库中配置 Amazon S3 服务器。
语法
config_aws -f|-file filename
示例
config_aws -f file1.xml
参数
- f|file filename
- 包含必要配置参数的文件的完整路径和文件名。
- u|user_authentication User
- 如果启用了安全管理,则需要使用此参数。为命令提供 Viewpoint 用户,并触发用于身份验证的密码提示。
所需权限:管理员角色
用法说明
role_name 是必需项。这是 IAM 角色(请参见 http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html)。使用角色时,所有 DSA 组件都必须在 AWS 云中运行且分配给此角色。
您需要为 Amazon S3 应用程序输入 AWS 帐户 ID(访问 ID)和 IAM 用户访问密钥。请参阅 http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html#Using_CreateAccessKey。
dsc config_aws -f aws.xml
Data Stream Controller Command Line 17.00.00.00 Command parameters: -file : aws.xml Enter access id for account "acctName".
AKIAJYGWLNCJDDZ35AXQ
Enter access key for account "acctName".
*******
Connected to DSC version 17.00.00.00 Saving AWS Backup Application configuration...
XML 文件示例
下面显示了一个典型的 XML 文件。请注意以下事项:
- 有关 S3 用法信息,请参见 http://docs.aws.amazon.com/AmazonS3/latest/UG/s3-ug.pdf。
- prefix_name 应后跟“/”才能用作文件夹。
<?xml version="1.0" encoding="UTF-8"?>
<!--****The command below must be on one line.****-->
<dscConfigAmzS3 dscVersion="" xmlns="http://schemas.teradata.com/v2012/DSC"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://schemas.teradata.com/v2012/DSC DSC.xsd">
<config_aws_list>
<!-- character must be alphanumeric, - Required, max characters 32 -->
<account_name>acctName</account_name>
<!-- character must be alphanueric, - Required, max characters 64 -->
<role_name>roleName</role_name>
<!-- must be region enum -->
<buckets_by_region>
<!-- valid regions: us-east-1, us-west-1, us-west-2, eu-west-1,eu-central-1,
ap-southeast-1, ap-southeast-2,ap-northeast-1, ap-northeast-2, sa-east-1 -->
<region>us-east-1</region>
<buckets>
<!-- character must be alphanumeric, - Required, max characters 512 -->
<bucket_name>bucketName</bucket_name>
<prefix_list>
<!-- character must be alphanumeric, - Required, max characters 256 -->
<prefix_name>prefix</prefix_name>
<!-- Required, Integer, min value is 1, max value is 999 -->
<storage_devices>1</storage_devices>
</prefix_list>
</buckets>
</buckets_by_region>
</config_aws_list>
</dscConfigAmzS3>