To create the cloud Staging Area:
- Configure the AWS account with DSC.
- Run the command dsc config_aws -file aws_config.xml. The aws_config.xml contains:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <dscConfigAmzS3 xmlns="http://schemas.teradata.com/v2012/DSC"> <config_aws_list> <account_name>aws-account-name</account_name> <buckets_by_region> <region>us-west-2</region> <buckets> <bucket_name>my-s3-bucket</bucket_name> <prefix_list> <prefix_name>backup</prefix_name> <storage_devices>100</storage_devices> </prefix_list> </buckets> </buckets_by_region> </config_aws_list> </dscConfigAmzS3>
- Enter the AWS Access Id and Key separately as the script prompts.
- Run the command dsc config_aws -file aws_config.xml. The aws_config.xml contains:
- Configure the target group with DSC for each node.
- Run the command dsc config_target_groups -type TARGET_S3 -file aws_source_tg.xml. The aws_source_tg.xml contains:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <dscConfigTargetGroupsAmzS3 xmlns="http://schemas.teradata.com/v2012/DSC"> <target_group_name>source-tg-name</target_group_name> <is_enabled>true</is_enabled> <account_name>aws-account-name</account_name> <region>us-west-2</region> <targetMediaBuckets> <bar_media_server>sourceSystem1_ms</bar_media_server> <buckets> <bucket_name>my-s3-bucket</bucket_name> <prefix_list> <prefix_name>backup/</prefix_name> <storage_devices>100</storage_devices> </prefix_list> </buckets> </targetMediaBuckets> </dscConfigTargetGroupsAmzS3>
- Enter the name of the media server for the source or the target in bar_media_server.
- Enter the name of the AWS account in account_name.
- Run the command dsc config_target_groups -type TARGET_S3 -file aws_source_tg.xml. The aws_source_tg.xml contains:
- Run the command dsc config_target_group_map -f aws_tg_map.xml to configure the target group map with DSC. The aws_tg_map.xml contains:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <dscConfigTargetGroupsAmzS3 xmlns="http://schemas.teradata.com/v2012/DSC"> <target_group_name>source-tg-name</target_group_name> <is_enabled>true</is_enabled> <account_name>aws-account-name</account_name> <region>us-west-2</region> <targetMediaBuckets> <bar_media_server>sourceSystem1_ms</bar_media_server> <buckets> <bucket_name>my-s3-bucket</bucket_name> <prefix_list> <prefix_name>backup/</prefix_name> <storage_devices>100</storage_devices> </prefix_list> </buckets> </targetMediaBuckets> </dscConfigTargetGroupsAmzS3>
- Specify the target group names in the createCloudStaging.xml. The createCloudStaging.xml contains:
<?xml version='1.0' encoding='UTF-8'?> <dmCreateCloudStaging xmlns="http://schemas.teradata.com/dataMover/v2009" xsi:schemaLocation="http://schemas.teradata.com/unity/DataMover.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <name>csa1</name> <storage_type>S3</storage_type> <source_target_pairs> <source_target_pair> <source_system>sourceSystem1</source_system> <source_system_target_group>source-tg-name</source_system_target_group> <target_system>targetSystem1</target_system> <target_system_target_group>target-tg-name</target_system_target_group> </source_target_pair> </source_target_pairs> </dmCreateCloudStaging>
- Run the command datamove create_cloud_staging -f createCloudStaging.xml to create a cloud staging area.
For further information on the Cloud Staging Area, refer to the Teradata® Data Mover User Guide, B035-4101