{"id":17185,"date":"2023-05-05T17:04:00","date_gmt":"2023-05-05T17:04:00","guid":{"rendered":"http:\/\/6435e5f918d12a001b53aa15"},"modified":"2025-01-07T04:37:02","modified_gmt":"2025-01-07T03:37:02","slug":"lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk","status":"publish","type":"post","link":"https:\/\/dassiorleando.com\/fr\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/","title":{"rendered":"Lift And Shift Cloud Migration Manual for AWS ElasticBeanstalk"},"content":{"rendered":"<h2 class=\"wp-block-heading\" id=\"introduction\">Introduction<\/h2>\n\n\n\n<p>It became a recommended practice for <strong>Cloud Migrations<\/strong> to be done in phases to minimize risks, speed up the deployments, and ensure the continuity of the services. The easiest and most common method is to L<strong>ift-And-Shift<\/strong> aka <strong>rehosting<\/strong> an application and its data with the minimum possible changes to the code. During a few minutes, we\u2019ll walk through the process of doing that for a <strong>Java\/SpringBoot<\/strong> Application.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>The <strong>YouTube Channels<\/strong> in both English (En) and French (Fr) are now accessible, feel free to subscribe by clicking <a href=\"https:\/\/www.youtube.com\/@numericaideas\/channels?sub_confirmation=1\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n<\/blockquote>\n\n\n<div class=\"vlp-link-container vlp-layout-basic wp-block-visual-link-preview-link\"><a href=\"https:\/\/www.youtube.com\/@numericaideas\/channels?sub_confirmation=1\" class=\"vlp-link\" title=\"Numerica Ideas\" rel=\"nofollow\" target=\"_blank\"><\/a><div class=\"vlp-layout-zone-side\"><div class=\"vlp-block-2 vlp-link-image\"><img decoding=\"async\" src=\"https:\/\/yt3.googleusercontent.com\/klwPa3fnccvxnvUjmfGmcdJDeX8J7BMbRraxiH69WeLx6qr3fQdxYSGN37vKE4jBCqGX5pZCgQ=s900-c-k-c0x00ffffff-no-rj\" style=\"max-width: 150px; max-height: 150px\" \/><\/div><\/div><div class=\"vlp-layout-zone-main\"><div class=\"vlp-block-0 vlp-link-title\">Numerica Ideas<\/div><div class=\"vlp-block-1 vlp-link-summary\">NumericaIdeas is a technical community that creates opportunities for IT professionals, where you\u2019ll secure your dream job, and indeed the group through which you can develop your hard and soft skills at your own pace. Our motto is \u201cDiscover, Learn, Build, &amp; Share\u201d \ud83d\ude80 \ud83d\udca1 La cha\u00eene est aussi disponi\u2026<\/div><\/div><\/div>\n\n\n<p>Do you prefer the Video format instead? We have got you covered:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Lift And Shift Cloud Migration of Spring Boot App Using AWS ElasticBeanstalk | Part 1 | Deployment\" width=\"960\" height=\"540\" src=\"https:\/\/www.youtube.com\/embed\/tWQFavEJQ7c?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-lift-and-shift\">How To Lift And Shift<\/h2>\n\n\n\n<p>Migrating an application with the lift-and-shift approach is often done by updating a few configuration files, taking into consideration the&nbsp;<strong><a href=\"https:\/\/en.wikipedia.org\/wiki\/Platform_as_a_service\">PAAS<\/a><\/strong>&nbsp;model, in which we are only responsible for the&nbsp;<strong>App<\/strong>&nbsp;and its&nbsp;<strong>data<\/strong>, with the infrastructure being handled by the Cloud provider in use.<\/p>\n\n\n\n<p>Many services are available to do so but depending on your specific case, one may be favoured over others. For this showcase, we opted for&nbsp;<strong>AWS ElasticBeanstalk<\/strong>&nbsp;which has an intuitive command line interface (CLI) that we can quickly play with to achieve the desired result.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-elasticbeanstalk\">What is ElasticBeanstalk?<\/h2>\n\n\n\n<p><strong><a href=\"https:\/\/aws.amazon.com\/elasticbeanstalk\">ElasticBeanstalk<\/a><\/strong>&nbsp;is an Amazon Service that enables organizations and developers to&nbsp;<strong>deploy<\/strong>&nbsp;and&nbsp;<strong>scale<\/strong>&nbsp;their Applications in the Cloud with the least possible change to their code,&nbsp;<strong>it\u2019s even very friendly no matter your Cloud experience<\/strong>.<\/p>\n\n\n\n<p>So, our only focus should be our code because it\u2019ll provision and manage the App infrastructure for us, of course, we can define some specific settings to&nbsp;<strong>customize<\/strong>&nbsp;the resulting infrastructure. It works with multiple stacks like&nbsp;<strong>Java, .Net, Docker, Go, NodeJS, PHP, Python, and Ruby<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/assets.numericaideas.com\/2023\/04\/lift-and-shift-cloud-migration-1.png\" alt=\"\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"demo\">Demo<\/h2>\n\n\n\n<p>For the sake of the article, here\u2019s the context in use for the following sections:<\/p>\n\n\n\n<p>\u201cAs a company, we have a&nbsp;<strong>Java (Spring Boot)<\/strong>&nbsp;Application along with a&nbsp;<strong>MySQL<\/strong>&nbsp;database hosted on-premise to serve our users. As part of our long-term&nbsp;<strong>digitalization<\/strong>&nbsp;strategies, we should first quickly move it to the Cloud, considering that our team has less or no Cloud experience beforehand.<strong>\u201d<\/strong><\/p>\n\n\n\n<p>The source code to use is hosted on&nbsp;<strong><a href=\"https:\/\/github.com\/numerica-ideas\/community\/tree\/master\/aws\/springboot-migration-elasticbeanstalk\">GitHub<\/a><\/strong>, feel free to clone it and jump in the right folder.<\/p>\n\n\n\n<p>Let&#8217;s start by cloning the project from the&nbsp;<a href=\"https:\/\/github.com\/numerica-ideas\/community\">GitHub repository<\/a>.<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">git clone https:\/\/github.com\/numerica-ideas\/community\n<\/pre>\n\n\n\n<p>Then, go to the directory that contains the project:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">cd community\/aws\/springboot-migration-elasticbeanstalk\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"migration-steps\">Migration Steps<\/h2>\n\n\n\n<p>Migrating that&nbsp;<strong>Spring Boot<\/strong>&nbsp;App is done in only&nbsp;<strong>5 steps<\/strong>&nbsp;that anyone can apply right away and that we&#8217;ll summarize into 3:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create the deployment package, generally an executable&nbsp;<strong>JAR<\/strong>&nbsp;file.<\/li>\n\n\n\n<li>Define the environment or infrastructure to run the App in, and a few settings to provide.<\/li>\n\n\n\n<li>Upload the executable of the App for it to get deployed automatically.<\/li>\n<\/ol>\n\n\n\n<p>You first have to install&nbsp;<strong>AWS CLI<\/strong>&nbsp;and set it up to use an account with the right&nbsp;<strong>ElasticBeanstalk<\/strong>&nbsp;capabilities.<\/p>\n\n\n\n<p>Here&#8217;s how to <a href=\"https:\/\/numericaideas.com\/blog\/configure-aws-cli\/\">configure your CLI<\/a> to use a specific AWS account:<\/p>\n\n\n<div class=\"vlp-link-container vlp-layout-basic wp-block-visual-link-preview-link\"><a href=\"https:\/\/numericaideas.com\/blog\/configure-aws-cli\/\" class=\"vlp-link\" title=\"How to Configure AWS CLI for Multi-Account Strategy\" rel=\"nofollow\" target=\"_blank\"><\/a><div class=\"vlp-layout-zone-side\"><div class=\"vlp-block-2 vlp-link-image\"><img decoding=\"async\" src=\"https:\/\/assets.numericaideas.com\/2023\/04\/how-to-configure-aws-cli-for-multi-account-strategy-1-min.png\" style=\"max-width: 150px; max-height: 150px\" \/><\/div><\/div><div class=\"vlp-layout-zone-main\"><div class=\"vlp-block-0 vlp-link-title\">How to Configure AWS CLI for Multi-Account Strategy<\/div><div class=\"vlp-block-1 vlp-link-summary\">In this article, we will go through the steps to configure AWS CLI for multiple accounts on your local machine or any server with Terminal access.<\/div><\/div><\/div>\n\n\n<p>Once done, then quickly&nbsp;<a href=\"https:\/\/docs.aws.amazon.com\/elasticbeanstalk\/latest\/dg\/eb-cli3-install.html\">install eb<\/a>&nbsp;by using pip&nbsp;<code>pip install awsebcli<\/code>. Let\u2019s note that the EB CLI requires Python 2.7 or 3.4 and a pip package manager.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-1-initialize-the-project\">Step 1: Initialize the Project<\/h3>\n\n\n\n<p>The first step is to enable our project to use the EB CLI, the&nbsp;<code>eb init<\/code>&nbsp;command is available for that, it\u2019ll create a&nbsp;<strong>config.yml<\/strong>&nbsp;file into the project, feel free to version it to have some precision of the deployment settings the App uses.<\/p>\n\n\n\n<p>For this step, we used the following options:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Region<\/strong>: us-east-1<\/li>\n\n\n\n<li>Kept the default name for the created&nbsp;<strong>Application<\/strong><\/li>\n\n\n\n<li><strong>Platform<\/strong>: Java &#8211; Corretto 17<\/li>\n\n\n\n<li>No&nbsp;<strong>CodeCommit<\/strong>&nbsp;config<\/li>\n\n\n\n<li>No&nbsp;<strong>SSH<\/strong>&nbsp;for instances<\/li>\n<\/ul>\n\n\n\n<p>This being done, within a hidden folder called&nbsp;<strong>.elasticbeanstalk,<\/strong>&nbsp;you&#8217;ll see the file&nbsp;<strong>config.yml<\/strong>&nbsp;that holds all those settings.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-2-create-the-environment\">Step 2: Create The Environment<\/h3>\n\n\n\n<p>Afterward, let\u2019s consider creating the&nbsp;<strong>EB Environment<\/strong>, this step should be done once. The sample option will create the environment with a sample application, but we\u2019ll update it at the end with our own SpringBoot App.<\/p>\n\n\n\n<p>Here&#8217;s the terminal command to run:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">eb create spring-cloud-migration --sample --single --timeout 30 --instance_type t3.micro --database.instance db.t3.micro --database.username SpringBootAdmin --database.password Strange_Pwd --envvars PORT=9090 --tags tag1=val1,tag2=val2<\/pre>\n\n\n\n<p>Then, go to the directory that contains the project:<\/p>\n\n\n\n<p>By this, we are creating an environment named&nbsp;<strong>spring-cloud-migration<\/strong>, that uses a&nbsp;<strong>sample<\/strong>&nbsp;application hosted on AWS for the first deployment, running on a&nbsp;<strong>single instance<\/strong>&nbsp;(for now), with a&nbsp;<strong>timeout<\/strong>&nbsp;of 30 minutes in case the provisioning doesn&#8217;t go through quickly, with a&nbsp;<strong>t3.micro instance<\/strong>&nbsp;used for the server(s) and RDS database, plus the&nbsp;<strong>credentials<\/strong>&nbsp;for the&nbsp;<a href=\"https:\/\/aws.amazon.com\/rds\">Relational Database<\/a>&nbsp;to use, along with a specific&nbsp;<strong>port<\/strong>&nbsp;(9090), and a &nbsp;few&nbsp;<strong>tags<\/strong>&nbsp;for illustration purposes.<\/p>\n\n\n\n<p>The&nbsp;<strong>environment<\/strong>&nbsp;could be&nbsp;<strong>dev<\/strong>,&nbsp;<strong>prod<\/strong>&nbsp;or even&nbsp;<strong>staging<\/strong>&nbsp;depending on your release workflows, meaning you can create many environments and use them afterward for deployments.<\/p>\n\n\n\n<p>By default, EB uses&nbsp;<strong>Nginx<\/strong>&nbsp;as a reverse proxy to map your App to the Load Balancer that is created for your environment, the Nginx server runs on port&nbsp;<strong>5000&nbsp;<\/strong>by default which we can customize by defining the&nbsp;<strong>PORT<\/strong>&nbsp;environment variable that our App will use at runtime. You can read more about this in this guide:&nbsp;<a href=\"https:\/\/docs.aws.amazon.com\/elasticbeanstalk\/latest\/dg\/nodejs-platform-proxy.html\">Configuring the proxy server &#8211; AWS Elastic Beanstalk<\/a>.<\/p>\n\n\n\n<p>If you specify the \u201c&#8211; platform\u201d, or even \u201c&#8211; region\u201d option, it&#8217;ll override the global value provided during&nbsp;<code>eb init<\/code>&nbsp;in the previous step.<\/p>\n\n\n\n<p>By accessing your AWS account, within the ElasticBeanstalk service you&#8217;ll see your created environment, ours looks like the following screenshot:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/assets.numericaideas.com\/2023\/04\/eb-created-environment.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>The sample App is used for our environment setup for now, this is made by the option&nbsp;<strong>&#8211;sample<\/strong>, so opening the auto-generated domain name will display something close to the following screenshot:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/assets.numericaideas.com\/2023\/04\/eb-sample-deployment.png\" alt=\"\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-3-deployment-package-build-\">Step 3: Deployment Package (build)<\/h3>\n\n\n\n<p>To perform the deployment we need to have an executable for Java Apps, but before doing so we have to ensure that our App knows we are customizing the port from the environment variable and that the database credentials are available.<\/p>\n\n\n\n<p>The class&nbsp;<strong><a href=\"https:\/\/github.com\/numerica-ideas\/community\/blob\/master\/aws\/springboot-migration-elasticbeanstalk\/src\/main\/java\/com\/numericaideas\/migration\/springbootliftshiftmigration\/ServerPortCustomizer.java\">ServerPortCustomizer.java<\/a>&nbsp;<\/strong>whose content is as follows<strong>&nbsp;<\/strong>has been created for that purpose:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">@Component\npublic class ServerPortCustomizer implements WebServerFactoryCustomizer&lt;ConfigurableWebServerFactory> {\n\tprivate static final Logger logger = LoggerFactory.getLogger(ServerPortCustomizer.class);\n    @Override\n    public void customize(ConfigurableWebServerFactory factory) {\n    \tString envPort = System.getenv().getOrDefault(\"PORT\", \"8090\");\n    \tint serverPort = Integer.parseInt(envPort);\n    \tfactory.setPort(serverPort);\n    \tlogger.debug(\"=== The server port is {} ===\", serverPort);\n    }\n}<\/pre>\n\n\n\n<p>From the environment creation in <strong>step 2<\/strong>, the following environment variable will be accessible within the deployment context of our App:&nbsp;<strong>RDS_HOSTNAME<\/strong>,&nbsp;<strong>RDS_PORT<\/strong>,&nbsp;<strong>RDS_DB_NAME<\/strong>,&nbsp;<strong>RDS_USERNAME<\/strong>, and&nbsp;<strong>RDS_PASSWORD<\/strong>.<\/p>\n\n\n\n<p>Let&#8217;s provide these to Spring Data via the&nbsp;<strong><a href=\"https:\/\/github.com\/numerica-ideas\/community\/blob\/master\/aws\/springboot-migration-elasticbeanstalk\/src\/main\/resources\/application.properties\">application.properties<\/a><\/strong>&nbsp;file:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\"># Datasource connection\nspring.datasource.url=jdbc:mysql:\/\/${RDS_HOSTNAME}:${RDS_PORT}\/${RDS_DB_NAME}\nspring.datasource.username=${RDS_USERNAME}\nspring.datasource.password=${RDS_PASSWORD}\nspring.jpa.database-platform=org.hibernate.dialect.MySQL5Dialect<\/pre>\n\n\n\n<p>The whole file looks like below:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/assets.numericaideas.com\/2023\/04\/eb-db-credentials.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Let&#8217;s create the&nbsp;<strong>Deployment Package (JAR)<\/strong>&nbsp;by running the command&nbsp;<code>.\/build.sh<\/code>, the corresponding script is already available within the project, this compiles the App and saves a&nbsp;<strong>JAR<\/strong>&nbsp;file in the root folder.<\/p>\n\n\n\n<p><strong>Note<\/strong>: It defaults to&nbsp;<strong>8090<\/strong>&nbsp;if no port env var is provided.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-4-linking-package-with-environment\">Step 4: Linking Package with Environment<\/h3>\n\n\n\n<p>Next, you have to&nbsp;<strong>link<\/strong>&nbsp;your&nbsp;<strong>App<\/strong>&nbsp;JAR file to the&nbsp;<strong>Environment<\/strong>&nbsp;that you previously created, this is done by making sure EB will have access to that file within the project code.<\/p>\n\n\n\n<p>Let\u2019s update its configuration as follows so that it locates it in the&nbsp;<strong>root folder:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/assets.numericaideas.com\/2023\/04\/eb-executable-location-1.png\" alt=\"\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-5-deployment-eb-deploy-staged-\">Step 5: Deployment (eb deploy &#8211;staged)<\/h3>\n\n\n\n<p>Finally, let\u2019s deploy the App to the related environment with the command:&nbsp;<code>eb deploy --staged<\/code>, more options can be provided to this command, as the label (&#8211;label) which is used as the deployment version name, and the&nbsp;<a href=\"https:\/\/docs.aws.amazon.com\/elasticbeanstalk\/latest\/dg\/eb3-deploy.html\">official documentation<\/a>&nbsp;highlights all the available options.<\/p>\n\n\n\n<p><strong>EB<\/strong>&nbsp;isn\u2019t only used to deploy Apps as part of a migration process, it&#8217;s possible to scale them as well. This aspect is covered as part of the&nbsp;<a href=\"https:\/\/youtube.com\/playlist?list=PLJl2liPyo6s3oQkBT2UWbuSfrwO4aS-9Z\">Cloud Migration Series<\/a>&nbsp;that we started on the&nbsp;<strong>Lift And Shift<\/strong>&nbsp;way and it&#8217;s available on&nbsp;<strong>YouTube<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Lift And Shift Cloud Migration of Spring Boot App Using AWS ElasticBeanstalk | Part 2 | Scalability\" width=\"960\" height=\"540\" src=\"https:\/\/www.youtube.com\/embed\/KHOxmHL5USI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Lift And Shift Cloud Migration of Spring Boot to AWS ElasticBeanstalk | Part 3: GitHub Actions CI\/CD\" width=\"960\" height=\"540\" src=\"https:\/\/www.youtube.com\/embed\/TI84hpeiTZE?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><strong>Trick<\/strong>: The command&nbsp;<code>eb open<\/code>&nbsp;will open the generated deployment domain name in the default browser but you won&#8217;t see anything magic since our App is an API (no UI).<\/p>\n\n\n\n<p>The deployment is overridden and we no longer see the sample application, feel free to use&nbsp;<strong>Postman<\/strong>&nbsp;to test it as illustrated in the&nbsp;<a href=\"https:\/\/youtu.be\/tWQFavEJQ7c?t=908\">video<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/assets.numericaideas.com\/2023\/04\/test-deployment-postman.png\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Lift And Shift Cloud Migration using AWS ElasticBeanstalk<\/figcaption><\/figure>\n\n\n\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n\n\n\n<p>We have just started our journey to build a network of professionals to grow our free knowledge-sharing community that\u2019ll give you a chance to learn interesting things about topics like cloud computing, software development, and software architectures while keeping the door open to more opportunities.<\/p>\n\n\n\n<p>Does this speak to you? If&nbsp;<strong>YES<\/strong>, feel free to&nbsp;<a href=\"https:\/\/discord.numericaideas.com\/\">Join our Discord Server<\/a>&nbsp;to stay in touch with the community and be part of independently organized events.<\/p>\n\n\n\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n\n\n\n<p>If the&nbsp;<strong>Cloud<\/strong>&nbsp;is of interest to you this&nbsp;<a href=\"https:\/\/youtu.be\/0II0ikOZEYE\">video<\/a>&nbsp;covers the 6 most I<strong>mportant Concepts<\/strong>&nbsp;you should know about it<strong>:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Important Cloud Computing Concepts in 8 minutes\" width=\"960\" height=\"540\" src=\"https:\/\/www.youtube.com\/embed\/0II0ikOZEYE?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h2>\n\n\n\n<p><strong>The &#8220;Lift And Shift Cloud Migration&#8221;<\/strong>&nbsp;is an easy process that any team can apply with very little&nbsp;<strong>Cloud experience<\/strong>, but you still have to do your due diligence to pick up the right service or platform to move forward with.<\/p>\n\n\n\n<p>Thanks for reading this article. Like, recommend, and share if you enjoyed it. Follow us on&nbsp;<a href=\"https:\/\/www.facebook.com\/numericaideas\">Facebook<\/a>,&nbsp;<a href=\"https:\/\/twitter.com\/numericaideas\">Twitter<\/a>, and&nbsp;<a href=\"https:\/\/www.linkedin.com\/company\/numericaideas\">LinkedIn<\/a>&nbsp;for more content.<\/p>","protected":false},"excerpt":{"rendered":"<p>The Lift And Shift (Rehosting) approach is applied by updating a few configuration files while taking into consideration the PAAS model, in which we are only responsible for the App and its data, with the infrastructure being handled by the Cloud provider.<\/p>","protected":false},"author":2,"featured_media":18714,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[63,64],"tags":[62,30,56,58],"class_list":["post-17185","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-devops","tag-aws","tag-java","tag-solutions-architecture","tag-spring-boot"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Lift And Shift Cloud Migration Manual for AWS ElasticBeanstalk<\/title>\n<meta name=\"description\" content=\"The Lift And Shift (Rehosting) approach is applied by updating a few configuration files while taking into consideration the PAAS model, in which we are only responsible for the App and its data, with the infrastructure being handled by the Cloud provider.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/numericaideas.com\/blog\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/\" \/>\n<meta property=\"og:locale\" content=\"fr_CA\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Lift And Shift Cloud Migration Manual for AWS ElasticBeanstalk\" \/>\n<meta property=\"og:description\" content=\"The Lift And Shift (Rehosting) approach is applied by updating a few configuration files while taking into consideration the PAAS model, in which we are only responsible for the App and its data, with the infrastructure being handled by the Cloud provider.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/numericaideas.com\/blog\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/\" \/>\n<meta property=\"og:site_name\" content=\"Orleando Dassi\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-05T17:04:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-07T03:37:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2023\/05\/aws-elasticbeanstalk-migration-min.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1904\" \/>\n\t<meta property=\"og:image:height\" content=\"1023\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Orl\u00e9ando Dassi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dassiorleando\" \/>\n<meta name=\"twitter:site\" content=\"@dassiorleando\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Orl\u00e9ando Dassi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/numericaideas.com\/blog\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dassiorleando.com\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/\"},\"author\":{\"name\":\"Orl\u00e9ando Dassi\",\"@id\":\"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e\"},\"headline\":\"Lift And Shift Cloud Migration Manual for AWS ElasticBeanstalk\",\"datePublished\":\"2023-05-05T17:04:00+00:00\",\"dateModified\":\"2025-01-07T03:37:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dassiorleando.com\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/\"},\"wordCount\":1692,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e\"},\"image\":{\"@id\":\"https:\/\/numericaideas.com\/blog\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2023\/05\/aws-elasticbeanstalk-migration-min.png\",\"keywords\":[\"AWS\",\"JAVA\",\"Solutions Architecture\",\"Spring Boot\"],\"articleSection\":[\"Cloud\",\"DevOps\"],\"inLanguage\":\"fr-CA\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/numericaideas.com\/blog\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dassiorleando.com\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/\",\"url\":\"https:\/\/numericaideas.com\/blog\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/\",\"name\":\"Lift And Shift Cloud Migration Manual for AWS ElasticBeanstalk\",\"isPartOf\":{\"@id\":\"https:\/\/dassiorleando.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/numericaideas.com\/blog\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/numericaideas.com\/blog\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2023\/05\/aws-elasticbeanstalk-migration-min.png\",\"datePublished\":\"2023-05-05T17:04:00+00:00\",\"dateModified\":\"2025-01-07T03:37:02+00:00\",\"description\":\"The Lift And Shift (Rehosting) approach is applied by updating a few configuration files while taking into consideration the PAAS model, in which we are only responsible for the App and its data, with the infrastructure being handled by the Cloud provider.\",\"breadcrumb\":{\"@id\":\"https:\/\/numericaideas.com\/blog\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/#breadcrumb\"},\"inLanguage\":\"fr-CA\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/numericaideas.com\/blog\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-CA\",\"@id\":\"https:\/\/numericaideas.com\/blog\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/#primaryimage\",\"url\":\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2023\/05\/aws-elasticbeanstalk-migration-min.png\",\"contentUrl\":\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2023\/05\/aws-elasticbeanstalk-migration-min.png\",\"width\":1904,\"height\":1023,\"caption\":\"Lift And Shift Cloud Migration Manual for AWS ElasticBeanstalk\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/numericaideas.com\/blog\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dassiorleando.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lift And Shift Cloud Migration Manual for AWS ElasticBeanstalk\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dassiorleando.com\/#website\",\"url\":\"https:\/\/dassiorleando.com\/\",\"name\":\"Orleando Dassi\",\"description\":\"My personal portfolio and resume\",\"publisher\":{\"@id\":\"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dassiorleando.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-CA\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e\",\"name\":\"Orl\u00e9ando Dassi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-CA\",\"@id\":\"https:\/\/dassiorleando.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2025\/01\/Orleando-Dassi-Consultant-Quebec.webp\",\"contentUrl\":\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2025\/01\/Orleando-Dassi-Consultant-Quebec.webp\",\"width\":1643,\"height\":1747,\"caption\":\"Orl\u00e9ando Dassi\"},\"logo\":{\"@id\":\"https:\/\/dassiorleando.com\/#\/schema\/person\/image\/\"},\"description\":\"I'm a Solutions Architect with 10 years of experience who is constantly learning while impacting the community by producing technical articles\/videos, building projects, and conducting tech mentoring\/coaching sessions. What describes me the most is my flexibility.\",\"sameAs\":[\"https:\/\/dassiorleando.com\/\",\"https:\/\/www.instagram.com\/dassiorleando\/\",\"https:\/\/www.linkedin.com\/in\/dassi-orleando-257b04ab\/\",\"https:\/\/x.com\/dassiorleando\",\"https:\/\/www.youtube.com\/@dassiorleando\"],\"url\":\"https:\/\/dassiorleando.com\/fr\/author\/dassiorleando\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Lift And Shift Cloud Migration Manual for AWS ElasticBeanstalk","description":"The Lift And Shift (Rehosting) approach is applied by updating a few configuration files while taking into consideration the PAAS model, in which we are only responsible for the App and its data, with the infrastructure being handled by the Cloud provider.","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:\/\/numericaideas.com\/blog\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/","og_locale":"fr_CA","og_type":"article","og_title":"Lift And Shift Cloud Migration Manual for AWS ElasticBeanstalk","og_description":"The Lift And Shift (Rehosting) approach is applied by updating a few configuration files while taking into consideration the PAAS model, in which we are only responsible for the App and its data, with the infrastructure being handled by the Cloud provider.","og_url":"https:\/\/numericaideas.com\/blog\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/","og_site_name":"Orleando Dassi","article_published_time":"2023-05-05T17:04:00+00:00","article_modified_time":"2025-01-07T03:37:02+00:00","og_image":[{"width":1904,"height":1023,"url":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2023\/05\/aws-elasticbeanstalk-migration-min.png","type":"image\/png"}],"author":"Orl\u00e9ando Dassi","twitter_card":"summary_large_image","twitter_creator":"@dassiorleando","twitter_site":"@dassiorleando","twitter_misc":{"Written by":"Orl\u00e9ando Dassi","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/numericaideas.com\/blog\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/#article","isPartOf":{"@id":"https:\/\/dassiorleando.com\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/"},"author":{"name":"Orl\u00e9ando Dassi","@id":"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e"},"headline":"Lift And Shift Cloud Migration Manual for AWS ElasticBeanstalk","datePublished":"2023-05-05T17:04:00+00:00","dateModified":"2025-01-07T03:37:02+00:00","mainEntityOfPage":{"@id":"https:\/\/dassiorleando.com\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/"},"wordCount":1692,"commentCount":0,"publisher":{"@id":"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e"},"image":{"@id":"https:\/\/numericaideas.com\/blog\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/#primaryimage"},"thumbnailUrl":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2023\/05\/aws-elasticbeanstalk-migration-min.png","keywords":["AWS","JAVA","Solutions Architecture","Spring Boot"],"articleSection":["Cloud","DevOps"],"inLanguage":"fr-CA","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/numericaideas.com\/blog\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dassiorleando.com\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/","url":"https:\/\/numericaideas.com\/blog\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/","name":"Lift And Shift Cloud Migration Manual for AWS ElasticBeanstalk","isPartOf":{"@id":"https:\/\/dassiorleando.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/numericaideas.com\/blog\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/#primaryimage"},"image":{"@id":"https:\/\/numericaideas.com\/blog\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/#primaryimage"},"thumbnailUrl":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2023\/05\/aws-elasticbeanstalk-migration-min.png","datePublished":"2023-05-05T17:04:00+00:00","dateModified":"2025-01-07T03:37:02+00:00","description":"The Lift And Shift (Rehosting) approach is applied by updating a few configuration files while taking into consideration the PAAS model, in which we are only responsible for the App and its data, with the infrastructure being handled by the Cloud provider.","breadcrumb":{"@id":"https:\/\/numericaideas.com\/blog\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/#breadcrumb"},"inLanguage":"fr-CA","potentialAction":[{"@type":"ReadAction","target":["https:\/\/numericaideas.com\/blog\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/"]}]},{"@type":"ImageObject","inLanguage":"fr-CA","@id":"https:\/\/numericaideas.com\/blog\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/#primaryimage","url":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2023\/05\/aws-elasticbeanstalk-migration-min.png","contentUrl":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2023\/05\/aws-elasticbeanstalk-migration-min.png","width":1904,"height":1023,"caption":"Lift And Shift Cloud Migration Manual for AWS ElasticBeanstalk"},{"@type":"BreadcrumbList","@id":"https:\/\/numericaideas.com\/blog\/lift-and-shift-cloud-migration-manual-aws-elasticbeanstalk\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dassiorleando.com\/"},{"@type":"ListItem","position":2,"name":"Lift And Shift Cloud Migration Manual for AWS ElasticBeanstalk"}]},{"@type":"WebSite","@id":"https:\/\/dassiorleando.com\/#website","url":"https:\/\/dassiorleando.com\/","name":"Orleando Dassi","description":"My personal portfolio and resume","publisher":{"@id":"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dassiorleando.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-CA"},{"@type":["Person","Organization"],"@id":"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e","name":"Orl\u00e9ando Dassi","image":{"@type":"ImageObject","inLanguage":"fr-CA","@id":"https:\/\/dassiorleando.com\/#\/schema\/person\/image\/","url":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2025\/01\/Orleando-Dassi-Consultant-Quebec.webp","contentUrl":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2025\/01\/Orleando-Dassi-Consultant-Quebec.webp","width":1643,"height":1747,"caption":"Orl\u00e9ando Dassi"},"logo":{"@id":"https:\/\/dassiorleando.com\/#\/schema\/person\/image\/"},"description":"I'm a Solutions Architect with 10 years of experience who is constantly learning while impacting the community by producing technical articles\/videos, building projects, and conducting tech mentoring\/coaching sessions. What describes me the most is my flexibility.","sameAs":["https:\/\/dassiorleando.com\/","https:\/\/www.instagram.com\/dassiorleando\/","https:\/\/www.linkedin.com\/in\/dassi-orleando-257b04ab\/","https:\/\/x.com\/dassiorleando","https:\/\/www.youtube.com\/@dassiorleando"],"url":"https:\/\/dassiorleando.com\/fr\/author\/dassiorleando\/"}]}},"_links":{"self":[{"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/posts\/17185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/comments?post=17185"}],"version-history":[{"count":1,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/posts\/17185\/revisions"}],"predecessor-version":[{"id":21669,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/posts\/17185\/revisions\/21669"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/media\/18714"}],"wp:attachment":[{"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/media?parent=17185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/categories?post=17185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/tags?post=17185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}