{"id":7748,"date":"2018-10-04T08:54:54","date_gmt":"2018-10-04T00:54:54","guid":{"rendered":"http:\/\/rmohan.com\/?p=7748"},"modified":"2018-10-04T08:54:54","modified_gmt":"2018-10-04T00:54:54","slug":"aws-how-to-copy-ebs-volumes-to-different-account","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=7748","title":{"rendered":"AWS How to Copy EBS Volumes to Different Account"},"content":{"rendered":"<p>It is common for an organization to have multiple AWS accounts, In my opinion, it\u2019s a best practice to have different accounts for DEV, QA, and PROD environments. One of the reasons, just in case of any security compromise your other accounts would be unaffected.<\/p>\n<p>Managing multiple accounts could be a challenge\u00a0as well. Recently, I published an article on\u00a0<a href=\"https:\/\/medium.com\/@zeebaig\/copy-aws-ec2-instances-from-one-account-to-another-cb85d4fbc06d\" target=\"_blank\" rel=\"noopener\">Cross-account copying of EC2 Instances<\/a>. I thought it would be cool to share on how to do the same with EBS volumes, so here we go.<\/p>\n<h3>Obtaining Target AWS Account ID<\/h3>\n<p>To obtain AWS account ID a simple solution is to do the following<\/p>\n<ol>\n<li>Log in to\u00a0<strong>AWS console<\/strong>\u00a0on the target account<\/li>\n<li>Click on the top right corner\u00a0<strong>Support<\/strong>\u00a0&gt;<strong>\u00a0Support Center<\/strong><\/li>\n<li>Copy the\u00a0<strong>AWS Account ID<\/strong>\u00a0and paste it into your favorite notepad, we will need it later<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2018\/10\/support-center.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7749\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2018\/10\/support-center.png\" alt=\"\" width=\"814\" height=\"430\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/support-center.png 814w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/support-center-300x158.png 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/support-center-768x406.png 768w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/support-center-150x79.png 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/support-center-400x211.png 400w\" sizes=\"(max-width: 814px) 100vw, 814px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2018\/10\/account-id-1024x201.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7750\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2018\/10\/account-id-1024x201.png\" alt=\"\" width=\"1024\" height=\"201\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/account-id-1024x201.png 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/account-id-1024x201-300x59.png 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/account-id-1024x201-768x151.png 768w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/account-id-1024x201-150x29.png 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/account-id-1024x201-400x79.png 400w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h3>Create a Snapshot of EBS Volume<\/h3>\n<ol>\n<li>To create a snapshot of EBS volume, log in to\u00a0<strong>AWS console<\/strong>\u00a0and click on\u00a0<strong>Volumes<\/strong>\u00a0under\u00a0<strong>EC2 &gt; Elastic Block Store<\/strong><\/li>\n<li>Select the volume of your choice, Right-click or choose to\u00a0<strong>Create Snapshot<\/strong>\u00a0from the\u00a0<strong>Actions<\/strong>\u00a0Menu<\/li>\n<li>Enter Volume description and click\u00a0<strong>Create Snapshot<\/strong><\/li>\n<li>Verify the snapshot created<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2018\/10\/create-snapshot.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7751\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2018\/10\/create-snapshot.png\" alt=\"\" width=\"1362\" height=\"978\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/create-snapshot.png 1362w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/create-snapshot-300x215.png 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/create-snapshot-768x551.png 768w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/create-snapshot-1024x735.png 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/create-snapshot-150x108.png 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/create-snapshot-400x287.png 400w\" sizes=\"(max-width: 1362px) 100vw, 1362px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2018\/10\/enter-account-info-snapshot.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7752\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2018\/10\/enter-account-info-snapshot.png\" alt=\"\" width=\"1540\" height=\"786\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/enter-account-info-snapshot.png 1540w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/enter-account-info-snapshot-300x153.png 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/enter-account-info-snapshot-768x392.png 768w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/enter-account-info-snapshot-1024x523.png 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/enter-account-info-snapshot-150x77.png 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/enter-account-info-snapshot-400x204.png 400w\" sizes=\"(max-width: 1540px) 100vw, 1540px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2018\/10\/modify-snapshot-permission.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7754\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2018\/10\/modify-snapshot-permission.png\" alt=\"\" width=\"760\" height=\"366\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/modify-snapshot-permission.png 760w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/modify-snapshot-permission-300x144.png 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/modify-snapshot-permission-150x72.png 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/modify-snapshot-permission-400x193.png 400w\" sizes=\"(max-width: 760px) 100vw, 760px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3>Verify Snapshot in Target Account<\/h3>\n<ol>\n<li>Login\u00a0to\u00a0<strong>AWS console<\/strong>\u00a0using target account, click on the\u00a0<strong>EC2 &gt; Elastic Block Store &gt; Snapshots<\/strong><\/li>\n<li>Choose\u00a0<strong>Private Snapshots<\/strong>\u00a0from the filter<\/li>\n<li>There you go, you can create a new EBS volume in target account using the shared snapshot<\/li>\n<li><\/li>\n<\/ol>\n<p><a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2018\/10\/private-snapshot.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7755\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2018\/10\/private-snapshot.png\" alt=\"\" width=\"368\" height=\"222\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/private-snapshot.png 368w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/private-snapshot-300x181.png 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/private-snapshot-150x90.png 150w\" sizes=\"(max-width: 368px) 100vw, 368px\" \/><\/a><br \/>\n<a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2018\/10\/find-new-snapshot.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7753\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2018\/10\/find-new-snapshot.png\" alt=\"\" width=\"1960\" height=\"384\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/find-new-snapshot.png 1960w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/find-new-snapshot-300x59.png 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/find-new-snapshot-768x150.png 768w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/find-new-snapshot-1024x201.png 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/find-new-snapshot-150x29.png 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/find-new-snapshot-400x78.png 400w\" sizes=\"(max-width: 1960px) 100vw, 1960px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is common for an organization to have multiple AWS accounts, In my opinion, it\u2019s a best practice to have different accounts for DEV, QA, and PROD environments. One of the reasons, just in case of any security compromise your other accounts would be unaffected.<\/p>\n<p>Managing multiple accounts could be a challenge as well. Recently, [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7748"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7748"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7748\/revisions"}],"predecessor-version":[{"id":7757,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7748\/revisions\/7757"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7748"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7748"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}