Search code examples
amazon-web-servicesamazon-ec2aws-lambdaboto3amazon-ebs

Is there a way to copy EBS snapshot to another account in other region? (cross-region,cross-account)


I'm trying to find out if it's possible to copy a snapshot from one account to another in different region in one go, without intermediate ( meaning copy/share to the other account then copy from the new account to the other region ), using lambda function and boto3. I have searched in aws documentation but with no luck


Solution

  • When you need such "complex" logic, it can be implemented with either CloudFormation or Terraform. The flow will be like the comments suggested, copy to another region and give permission to another account.

    This AWS blog speaks of a similar requirement with example CloudFormation templates here.

    If you are unfamiliar with CloudFormation, you can get started with their docs but it isn't something you can do when in a hurry. Just good practice you can develop early on.