{"id":2841,"date":"2019-08-30T09:19:43","date_gmt":"2019-08-30T09:19:43","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=2841"},"modified":"2020-05-01T10:29:59","modified_gmt":"2020-05-01T10:29:59","slug":"migrating-ec2-resources-to-another-region","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/migrating-ec2-resources-to-another-region\/","title":{"rendered":"Learning Migrating EC2 Resources"},"content":{"rendered":"\n<h3><strong>Learning Migrating EC2 Resources<\/strong><\/h3>\r\n<p>Get ready to learn about Migrating EC2 resources with features &#8211; SSH Keys and Security Groups.<\/p>\r\n<ul class=\"wp-block-list\">\r\n<li>EC2 is a web service<\/li>\r\n<li>EC2 provides resizable compute capacity<\/li>\r\n<li>Migrating an instance involves\r\n<ul>\r\n<li>copying the data and images<\/li>\r\n<\/ul>\r\n<ul>\r\n<li>check for security groups and SSH keys<\/li>\r\n<\/ul>\r\n<ul>\r\n<li>then restarting fresh instances.<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/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 stored in a region only.<\/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<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"509\" height=\"328\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/09\/image-193.png\" alt=\"\" class=\"wp-image-3829\"\/><\/figure>\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>security group\u2019s rule can access source (or in VPC, destination) by\n<ul>\n<li>CIDR notation in IPv4 address range as &#8211; a.b.c.d\/x<\/li>\n<\/ul>\n<ul>\n<li>security group identifier as &#8211; XXXXXXXX<\/li>\n<\/ul>\n<\/li><li>The scope of every security group is the 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>All instances which are activated, should be a member of the 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\">\r\n<li>It is a special type of preconfigured operating system image<\/li>\r\n<li>used to create a virtual machine (an EC2 instance) within the EC2 environment.<\/li>\r\n<li>AMI is assigned an identifier, of form \u201cami-XXXXXXXX\u201d, where \u201dX\u201d is a hexadecimal value (0-9, A-F).<\/li>\r\n<li>Each AMI is unique per region.<\/li>\r\n<li>AMIs do not span multiple regions.<\/li>\r\n<li>the same content of an AMI can be available in other regions<\/li>\r\n<li>A unique AMI ID is given to every region\u2019s copy of data<\/li>\r\n<li>User can create their own AMIs from instances which are running<\/li>\r\n<li>AMI Copy function is used to migrate AMIs across regions and can be executed by\r\n<ul>\r\n<li>AWS Management Console<\/li>\r\n<\/ul>\r\n<ul>\r\n<li>Amazon EC2 CLI<\/li>\r\n<\/ul>\r\n<ul>\r\n<li>Amazon EC2 API<\/li>\r\n<\/ul>\r\n<\/li>\r\n<li>AMI Copy is available for AMIs backed by EBS and instance store-backed AMIs.<\/li>\r\n<li>Every AMI copy has a unique AMI ID<\/li>\r\n<li>Changes done to source AMI are not done to new AMI during AMI copy process<\/li>\r\n<li>You must recopy the AMI to the target regions to copy the changes made to the source AMI.<\/li>\r\n<\/ul>\r\n<p><strong>Enrich and upgrade your profile to become an <a href=\"https:\/\/www.testpreptraining.ai\/aws-certified-developer-associate-practice-exam\">AWS Certified Developer &#8211; Associate<\/a> with hundreds of practice tests. Try Free Practice Test Now!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learning Migrating EC2 Resources Get ready to learn about Migrating EC2 resources with features &#8211; SSH Keys and Security Groups. EC2 is a web service EC2 provides resizable compute capacity Migrating an instance involves copying the data and images check for security groups and SSH keys then restarting fresh instances. SSH Keys AWS does not&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2476,"menu_order":7,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[492],"class_list":["post-2841","page","type-page","status-publish","hentry","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>Learning Migrating EC2 Resources - Testprep Training Tutorials<\/title>\n<meta name=\"description\" content=\"Enrich and Upgrade your profile to become a AWS Certified Developer - Associate with hundreds of practice test. Learn about Migrating EC2 and Qualify 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-developer-associate\/migrating-ec2-resources-to-another-region\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Learning Migrating EC2 Resources - Testprep Training Tutorials\" \/>\n<meta property=\"og:description\" content=\"Enrich and Upgrade your profile to become a AWS Certified Developer - Associate with hundreds of practice test. Learn about Migrating EC2 and Qualify Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/migrating-ec2-resources-to-another-region\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-01T10:29:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/09\/image-193.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=\"2 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-developer-associate\/migrating-ec2-resources-to-another-region\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/migrating-ec2-resources-to-another-region\/\",\"name\":\"Learning Migrating EC2 Resources - Testprep Training Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2019-08-30T09:19:43+00:00\",\"dateModified\":\"2020-05-01T10:29:59+00:00\",\"description\":\"Enrich and Upgrade your profile to become a AWS Certified Developer - Associate with hundreds of practice test. Learn about Migrating EC2 and Qualify Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/migrating-ec2-resources-to-another-region\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/migrating-ec2-resources-to-another-region\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/migrating-ec2-resources-to-another-region\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AWS Certified Developer Associate (DVA-C01)\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Learning Migrating EC2 Resources\"}]},{\"@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":"Learning Migrating EC2 Resources - Testprep Training Tutorials","description":"Enrich and Upgrade your profile to become a AWS Certified Developer - Associate with hundreds of practice test. Learn about Migrating EC2 and Qualify 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-developer-associate\/migrating-ec2-resources-to-another-region\/","og_locale":"en_US","og_type":"article","og_title":"Learning Migrating EC2 Resources - Testprep Training Tutorials","og_description":"Enrich and Upgrade your profile to become a AWS Certified Developer - Associate with hundreds of practice test. Learn about Migrating EC2 and Qualify Now!","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/migrating-ec2-resources-to-another-region\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2020-05-01T10:29:59+00:00","og_image":[{"url":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/09\/image-193.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/migrating-ec2-resources-to-another-region\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/migrating-ec2-resources-to-another-region\/","name":"Learning Migrating EC2 Resources - Testprep Training Tutorials","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2019-08-30T09:19:43+00:00","dateModified":"2020-05-01T10:29:59+00:00","description":"Enrich and Upgrade your profile to become a AWS Certified Developer - Associate with hundreds of practice test. Learn about Migrating EC2 and Qualify Now!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/migrating-ec2-resources-to-another-region\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/migrating-ec2-resources-to-another-region\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/migrating-ec2-resources-to-another-region\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"AWS Certified Developer Associate (DVA-C01)","item":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/"},{"@type":"ListItem","position":3,"name":"Learning Migrating EC2 Resources"}]},{"@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\/2841","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=2841"}],"version-history":[{"count":6,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/2841\/revisions"}],"predecessor-version":[{"id":5086,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/2841\/revisions\/5086"}],"up":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/2476"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=2841"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=2841"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=2841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}