Skip to content

aws-samples/sample-batch-ops-parallelization

BOPS Parallelization Blog

Getting started

Prerequisites

Step 1. Clone the repository:

git clone git@github.com:aws-samples/sample-batch-ops-parallelization.git

Step 2. Deployment to your AWS account

Make sure you are authenticated to your account with enough privileges to create IAM roles, and you are on AWS region us-west-2 then cd into the repository's lib directory and run the deploy.sh command

(Assuming you have cloned the repository into the BOPSParallelization)

cd ./BOPSParallelization/lib
sh ./deploy.sh

Step 3. Run a migration

Find the lambda function called "BOPSParallelMainHandler" and modify and add the following to the test:

{
  "workflow": {
    "workflowName": "testWorkflowName", 
    "namespaceID": "testNameSpaceID",
    "workflowType": "S3_REPLICATION",
    "sourceBucketARN": "arn:aws:s3:::{source_bucket_name}",
    "destBucketARN": "arn:aws:s3:::{dest_bucket_name}",
    "sourceRoleARN": "arn:aws:iam::{account_id}:role/s3a-bucket-permissions",
    "destRoleARN": "arn:aws:iam::{account_id}:role/s3a-bucket-permissions",
    "sourceAccountNumber": "{account_id}",
    "destAccountNumber": "{account_id}", 
    "sourceRegion": "{source_bucket_region}",
    "destRegion": "{dest_bucket_region}"
  }
}

Then go to the step function called "S3AWorkflow" and click start execution and add the following:

{
  "workflowName": "testWorkflowName"
  "namespaceID": "testNameSpaceID",
}

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages