简体   繁体   English

有没有办法将 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 .我试图找出是否可以将snapshot从一个account复制到一个 go中不同region的另一个帐户,无需中间(意味着复制/共享到另一个帐户,然后从新帐户复制到另一个区域),使用lambda functionboto3 I have searched in aws documentation but with no luck我在aws文档中搜索过,但没有运气

When you need such "complex" logic, it can be implemented with either CloudFormation or Terraform .当您需要这种“复杂”逻辑时,可以使用CloudFormationTerraform来实现。 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 . AWS 博客在此处使用示例CloudFormation模板谈到了类似的要求。

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.如果您不熟悉CloudFormation ,您可以从他们的文档开始,但这不是您赶时间时可以做的事情。 Just good practice you can develop early on.只是良好的实践,您可以及早发展。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM