Hitachi Content Platform​

 Does anyone have a working example of setting up replication between two buckets on two different Cloud Scale systems? CLI preferred. Thanks in advance.

  • Object Storage
  • Hitachi Content Platform HCP for Cloud Scale
  • Object Storage
Bernard Lam's profile image
Bernard Lam posted 03-31-2021 14:30
Steven Looby's profile image
Steven Looby

Syntax for Sync-OUT (source buckrt to Destination bucket).

 

In this example, we'll replicating content matching a prefix and tag value.

 

aws --endpoint-url https://myaspen.com s3api put-bucket-replication --bucket "aspen_bucket" --replication-configuration \​

'{​

    "Role": "", ​

    "Rules": [{​

        "ID": "rule_for_september_images",​

        "Filter": {​

            "Prefix": "/images/september/", ​

            "Tag": {​

                "Key": "target", ​

                "Value": "cloud"​

            }​

        },​

        "Status": "Enabled", ​

        "Destination": {​

            "Bucket": "arn::sync-to::1.0::s3.us-east-2.amazonaws.com:443::us-east-2::input-bucket::v4::true",​

            "Account": “AA=,BB=",​

        }​

       }]​

}'

 

other Notes:

 

  • “Bucket” has a set of parameters for external bucket:​

arn::sync-to::<version>::<S3 host:port>::<region>::<bucket name>::<auth version>::<use path style always>

  • “Account” has the S3 credentials for external S3 bucket in the following format (e.g. in Linux use “echo –n $accessKey | base 64”):​

<base64(accessKey)>,<base64(secretKey)>