{"id":3203,"date":"2019-09-02T11:00:13","date_gmt":"2019-09-02T11:00:13","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=3203"},"modified":"2020-05-02T05:06:32","modified_gmt":"2020-05-02T05:06:32","slug":"migrating-ec2-resources-to-another-region-2","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/migrating-ec2-resources-to-another-region-2\/","title":{"rendered":"Migrating EC2 Resources to Another Region"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li>\n<h3>Migrating EC2 Resources to Another Region<\/h3>\n<\/li><li>We shall now discuss more about Migrating EC2 Resources to Another Region and get ready to Certify Now!<\/li><li>EC2 is a web service<\/li><li>EC2 provides resizable compute capacity<\/li><li>Migrating an instance involves\n<ul>\n<li>copying the data and images<\/li>\n<\/ul>\n<ul>\n<li>ensuring that the security groups and SSH keys are present<\/li>\n<\/ul>\n<ul>\n<li>then restarting fresh instances.<\/li>\n<\/ul>\n<\/li><\/ul>\n\n\n\n<p><strong>SSH Keys<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>AWS does not keep any SSH private keys after they are generated<\/li><li>public keys are made available to EC2 instances when they are running<\/li><li>retrieve a fingerprint of each key from&nbsp; API, SDK, CLI or the AWS Management Console.<\/li><li>SSH public keys are only stored per region.<\/li><li>AWS does not copy or synchronize configured SSH keys between regions.<\/li><li>can log in to an existing Linux instance in the source region, obtain a copy of the public key (from<\/li><li>~\/.ssh\/authorized_keys), and import this public key into the target region.<\/li><li>Auto Scaling launch configurations and CloudFormation templates might refer to SSH keys using the key pair name.<\/li><\/ul>\n\n\n\n<p>Key pairs in the AWS Management Console<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"509\" height=\"328\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/09\/image-48.png\" alt=\"\" class=\"wp-image-3408\"\/><\/figure><\/div>\n\n\n\n<p><strong>Security Groups<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>restrict ingress traffic (or in VPC, ingress and egress traffic) to a group of EC2 instances.<\/li><li>Each rule in a security group can refer to the source (or in VPC, the destination) by\n<ul>\n<li>a CIDR notation IPv4 address range (a.b.c.d\/x), or<\/li>\n<\/ul>\n<ul>\n<li>by using the security group identifier (sg-XXXXXXXX).<\/li>\n<\/ul>\n<\/li><li>Each security group can exist within the scope of only one region.<\/li><li>The same name can exist in multiple regions but have different definitions of what traffic is<\/li><li>permitted to pass.<\/li><li>Every instance being launched must be a member of a security group.<\/li><li>review configured security groups to ensure that the required level of network access restrictions is in place.<\/li><li>To export a copy of the definitions of existing security groups (using the command line tools), run the following command: ec2-describe-group \u2013H -\u2013region &lt;sourceregionname&gt; &gt; security_groups.txt<\/li><\/ul>\n\n\n\n<p><strong>Amazon Machine Images<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>It is a special type of preconfigured operating system image<\/li><li>used to create a virtual machine (an EC2 instance) within the EC2 environment.<\/li><li>AMI is assigned identifier, of form \u201cami-XXXXXXXX\u201d, where \u201dX\u201d is a hexadecimal value (0-9, A-F).<\/li><li>Each AMI is unique per region.<\/li><li>AMIs do not span multiple regions.<\/li><li>the same content of an AMI can be available in other regions<\/li><li>Each region has its own unique AMI ID for its copy of this data.<\/li><li>can create own AMIs from running instances<\/li><li>Migration of AMIs across regions is supported using the EC2 AMI Copy function<\/li><li>AMI Copy enables you to copy an AMI to as many regions as you want from the AWS Management Console, the Amazon EC2 CLI, or the Amazon EC2 API.<\/li><li>AMI Copy is available for AMIs backed by EBS and instance store-backed AMIs, and is operating system agnostic.<\/li><li>Each copy of an AMI results in a new AMI with its own unique AMI ID.<\/li><li>Any changes made to the source AMI during or after a copy are not propagated to the new AMI as part of the AMI copy process.<\/li><li>You must recopy the AMI to the target regions to copy the changes made to the source AMI.<\/li><\/ul>\n\n\n\n<p><strong>Boost your chances to qualify and become <a href=\"https:\/\/www.testpreptraining.ai\/aws-certified-sysops-administrator-associate-practice-exam\">AWS Certified SysOps Administrator<\/a> Now!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Migrating EC2 Resources to Another Region We shall now discuss more about Migrating EC2 Resources to Another Region and get ready to Certify Now! EC2 is a web service EC2 provides resizable compute capacity Migrating an instance involves copying the data and images ensuring that the security groups and SSH keys are present then restarting&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2471,"menu_order":31,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[7,492],"class_list":["post-3203","page","type-page","status-publish","hentry","category-amazon-aws","tag-aws","tag-migrating-ec2"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Migrating EC2 Resources - Testprep Training Tutorials<\/title>\n<meta name=\"description\" content=\"Get ready to certify as a AWS SysOps Administrator with hundreds of real time practice exam and expert guidance. Lear about Migrating EC2 Now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/migrating-ec2-resources-to-another-region-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Migrating EC2 Resources - Testprep Training Tutorials\" \/>\n<meta property=\"og:description\" content=\"Get ready to certify as a AWS SysOps Administrator with hundreds of real time practice exam and expert guidance. Lear about Migrating EC2 Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/migrating-ec2-resources-to-another-region-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-02T05:06:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/09\/image-48.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/migrating-ec2-resources-to-another-region-2\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/migrating-ec2-resources-to-another-region-2\/\",\"name\":\"Migrating EC2 Resources - Testprep Training Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2019-09-02T11:00:13+00:00\",\"dateModified\":\"2020-05-02T05:06:32+00:00\",\"description\":\"Get ready to certify as a AWS SysOps Administrator with hundreds of real time practice exam and expert guidance. Lear about Migrating EC2 Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/migrating-ec2-resources-to-another-region-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/migrating-ec2-resources-to-another-region-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/migrating-ec2-resources-to-another-region-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AWS Certified Solutions Architect Professional (SAP-C02)\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Migrating EC2 Resources to Another Region\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"name\":\"Testprep Training Tutorials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\",\"name\":\"Testprep Training\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"contentUrl\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"width\":583,\"height\":153,\"caption\":\"Testprep Training\"},\"image\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Migrating EC2 Resources - Testprep Training Tutorials","description":"Get ready to certify as a AWS SysOps Administrator with hundreds of real time practice exam and expert guidance. Lear about Migrating EC2 Now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/migrating-ec2-resources-to-another-region-2\/","og_locale":"en_US","og_type":"article","og_title":"Migrating EC2 Resources - Testprep Training Tutorials","og_description":"Get ready to certify as a AWS SysOps Administrator with hundreds of real time practice exam and expert guidance. Lear about Migrating EC2 Now!","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/migrating-ec2-resources-to-another-region-2\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2020-05-02T05:06:32+00:00","og_image":[{"url":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/09\/image-48.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/migrating-ec2-resources-to-another-region-2\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/migrating-ec2-resources-to-another-region-2\/","name":"Migrating EC2 Resources - Testprep Training Tutorials","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2019-09-02T11:00:13+00:00","dateModified":"2020-05-02T05:06:32+00:00","description":"Get ready to certify as a AWS SysOps Administrator with hundreds of real time practice exam and expert guidance. Lear about Migrating EC2 Now!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/migrating-ec2-resources-to-another-region-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/migrating-ec2-resources-to-another-region-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/migrating-ec2-resources-to-another-region-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"AWS Certified Solutions Architect Professional (SAP-C02)","item":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/"},{"@type":"ListItem","position":3,"name":"Migrating EC2 Resources to Another Region"}]},{"@type":"WebSite","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","name":"Testprep Training Tutorials","description":"","publisher":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization","name":"Testprep Training","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","contentUrl":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","width":583,"height":153,"caption":"Testprep Training"},"image":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/3203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/comments?post=3203"}],"version-history":[{"count":6,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/3203\/revisions"}],"predecessor-version":[{"id":5201,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/3203\/revisions\/5201"}],"up":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/2471"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=3203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=3203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=3203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}