{"id":39914,"date":"2016-08-31T11:14:34","date_gmt":"2016-08-31T05:44:34","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=39914"},"modified":"2016-09-01T09:27:04","modified_gmt":"2016-09-01T03:57:04","slug":"8-things-to-consider-while-migrating-cloud-infrastructure-between-aws-regions","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/8-things-to-consider-while-migrating-cloud-infrastructure-between-aws-regions\/","title":{"rendered":"8 Things to consider while Migrating Cloud Infrastructure between AWS Regions"},"content":{"rendered":"<p>With the recent launch of AWS\u2019s Mumbai region, the first thought that comes to\u00a0the mind of any <a title=\"devops as a service\" href=\"http:\/\/www.tothenew.com\/devops-automation-consulting\">DevOps<\/a> would be to migrate IT-Infra from Singapore region to Mumbai if we have a huge customer base in India. This would, of course, decrease the latency as well as help them to save a lot of bucks as it is cheaper than Singapore region.<\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-39932 \" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/08\/Email-Migration-Service1-e1472615778179.jpeg\" alt=\"Email-Migration-Service1\" width=\"613\" height=\"383\" \/><\/p>\n<p>We have been taking care of an e-commerce website hosted in AWS Singapore region, and now <a title=\"aws migration services\" href=\"http:\/\/www.tothenew.com\/devops-aws\">we have migrated<\/a> it to Mumbai region. We thought of writing a blog on what we have learned during this migration activity. Migration, as we all know, is to migrate servers which are\u00a0responsible for keeping our web application running such as application, web, database, etc. and a few other. We would be looking for few things which were required to be considered while performing this migration activity:<\/p>\n<ol>\n<li style=\"font-weight: 400;\"><b>Update base AMI<\/b><span style=\"font-weight: 400;\">: Base AMI is the one which includes security, monitoring, and logging packages such as &#8220;fail2ban&#8221;, NewRelic, Logstash forwarder, auditd, etc. This is a good time to update these packages and their configuration and include new ones if required. In case Docker is being used, Docker version could be updated.<\/span><\/li>\n<li style=\"font-weight: 400;\"><b>Update base docker images<\/b><span style=\"font-weight: 400;\">: We are using Docker in\u00a0all the environments. We can include basic packages in docker images which we observed as good to have in older times for debugging such as curl, telnet and few others such as vim, wget, zip, etc. <\/span><\/li>\n<li style=\"font-weight: 400;\"><b>AWS Discovery Plugin of Elasticsearch<\/b><span style=\"font-weight: 400;\">: We are using Elasticsearch database and while migrating it to Mumbai we encountered an issue where AWS Discovery plugin was not supported in Mumbai Region. We resolved it by changing its code. The details could be found <\/span><a href=\"http:\/\/www.tothenew.com\/blog\/making-elasticsearch-cluster-work-in-aws-mumbai-region\/\"><span style=\"font-weight: 400;\">here<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\"><b>Migrating Jenkins Server<\/b><span style=\"font-weight: 400;\">: We can simply migrate Jenkins server by creating server\u2019s AMI in Singapore region and then copying it in Mumbai region. This task is not as simple as the servers\u2019 IP may be different in Mumbai region. After bringing the server up, the jobs need to be tested to figure out any authentication problem with the servers the job tries to connect. Since the jobs would be trying to connect to the servers running in Mumbai region after migration so, all needs to be well tested.<\/span><\/li>\n<li style=\"font-weight: 400;\"><b>Cron jobs running on various servers:<\/b><span style=\"font-weight: 400;\"> All Cron jobs need to be listed in one place if already not centralized so that every job could be taken care off. We may have to update the jobs in case we are using IPs in them. <\/span><\/li>\n<li style=\"font-weight: 400;\"><b>VPN Server<\/b><span style=\"font-weight: 400;\">: If one is using VPN server for secure logging into the servers then we may have to create all the client again because the public IP of the VPN server would get changed. Currently, <span style=\"text-decoration: underline;\">AWS does not address the EIP migration<\/span> between regions.<\/span><\/li>\n<li style=\"font-weight: 400;\"><b>Third Party Payment Gateway<\/b><span style=\"font-weight: 400;\">: Most of the e-commerce websites used third party payment gateways.The <span style=\"text-decoration: underline;\">payment gateways need IPs to be whitelisted<\/span>. In Mumbai region, we had to create a new AWS NAT gateway and get its public IP whitelisted by the payment gateway.<\/span><\/li>\n<li style=\"font-weight: 400;\"><strong><b>Centralized Logging:<\/b><span style=\"font-weight: 400;\"> Most of us use ELK as a centralized logging system, and we make the communication between the servers secure by using a secure certificate which we generate against a particular URL or IP. Ensure to update the certificate if generated against an IP.<\/span><\/strong><\/li>\n<\/ol>\n<p>DevOps are required to provide <a title=\"DevOps Developers\" href=\"http:\/\/www.tothenew.com\/devops-automation-consulting\">endpoints to the developers<\/a> if updated. They may need to update the AWS region in the code where it is referred. I hope this would be helpful during such kind of a migration process.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the recent launch of AWS\u2019s Mumbai region, the first thought that comes to\u00a0the mind of any DevOps would be to migrate IT-Infra from Singapore region to Mumbai if we have a huge customer base in India. This would, of course, decrease the latency as well as help them to save a lot of bucks [&hellip;]<\/p>\n","protected":false},"author":154,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":8},"categories":[1174,2348,1],"tags":[3975,3976,3973,1703,3974],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/39914"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/154"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=39914"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/39914\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=39914"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=39914"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=39914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}