{"id":679,"date":"2021-11-26T10:59:24","date_gmt":"2021-11-26T10:59:24","guid":{"rendered":"https:\/\/www.workfall.com\/learning\/blog\/?p=679"},"modified":"2023-04-28T05:59:35","modified_gmt":"2023-04-28T05:59:35","slug":"how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2","status":"publish","type":"post","link":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/","title":{"rendered":"How to set up a continuous deployment pipeline to deploy versions of an application on AWS Elastic Beanstalk using AWS CodePipeline (Part 2)?"},"content":{"rendered":"<span class=\"rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\">11<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>\n<p><img src=\"https:\/\/lh4.googleusercontent.com\/7-Col5dcjEOrwshAFpXo870NEduFdvieWPDd4k4Le7FBNNgQbJIfDhuhNbe-72ncRQvZOKO5iidisVre_ZpdRmGHFB2c4HBkBSZ3Az3ISZuBVpcWs6x0UlTCbxWM3wQkOvEyeJG6\" style=\"width: 1600px;\"><\/p>\n\n\n\n<p class=\"has-text-align-justify\">AWS Elastic Beanstalk allows us to quickly deploy and manage applications without having to worry about the underlying infrastructure. One of its major benefits is that it reduces the complexity of management of the infrastructure without any restrictions thereby making it easy for developers to focus on just building the application and least worry about the deployment architecture.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">We can make use of <a href=\"https:\/\/aws.amazon.com\/elasticbeanstalk\/\" target=\"_blank\" rel=\"noreferrer noopener\">AWS Elastic Beanstalk<\/a> to deploy and scale the deployed web applications with an easy-to-use interface. Elastic Beanstalk supports the deployment of <a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-to-write-clean-code-with-dependency-injection-in-java\/\">Java<\/a>, .Net, <a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-to-easily-build-etl-pipeline-using-python-and-airflow\/\">Python<\/a>, <a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-to-export-data-to-a-csv-file-using-multiple-npm-packages-in-node-js\/\">Node.js<\/a>, Ruby, etc. applications.\u00a0<\/p>\n\n\n\n<p class=\"has-text-align-justify\">Having a variety of options makes it a most popular service amongst developers to quickly deploy web applications. All that is required by the service is to just upload the code base as a .zip file and Elastic Beanstalk will automatically handle the deployment process taking care of everything that is required to maintain and manage the infrastructure.&nbsp;<\/p>\n\n\n\n<p class=\"has-text-align-justify\">The service does not charge you a fixed amount since you only pay for the resource needed to run the applications. <a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-to-create-ci-cd-workflow-using-aws-codestar\/\">AWS CodePipeline<\/a> is basically a web service that automates the deployment of an application. It consists of various stages like Source, Builds, Approval (optional), and Deploy. The Source stage can easily be integrated with 3rd party tools or with AWS CodeCommit or Amazon S3 to update the code base.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">The build stage can then be integrated with Amazon S3 to store the logs and similarly, the deploy stage can further be integrated with multiple services including AWS Elastic Beanstalk. You can push the application version updates quickly by automating the process of deployment of the new application versions to ease the process of multiple version releases.<\/p>\n\n\n\n<p>Refer to <a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-1\/\">part 1<\/a> of the blog here.<\/p>\n\n\n\n<h2>AWS Elastic Beanstalk &#8211; Recap<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/x1ShiBsejpyVHF6RBicXYDyTGDJ8uPtR1XoQVHWaqyROrRylq-sThzoBCtM85UFgYXsQwk5kMosio5I1731oT5o0U2EJGDvHH5SgBWQkYUwYQn9eDN_2Ge9ctb5CJDgs5uLnSpba\" alt=\"AWS Elastic Beanstalk \"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Amazon ECS (Amazon Elastic Container Solution) is a highly scalable and fast container management service that simplifies the process of starting, stopping, and managing containers in a cluster. The containers you use to run individual tasks or tasks within a service are defined in a task definition.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">Simply upload your code, and Elastic Beanstalk will take care of everything else, including capacity provisioning, load balancing, auto-scaling, and application health monitoring. You have complete control over the AWS resources that power your application and can access them at any time. Elastic Beanstalk is free; you only pay for the resources you use.<\/p>\n\n\n\n<h2>Hands-on<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/uc2fPzHBwyDfhO2ghyWmW1V67tuoYbyZwytAyfcsd7gnuqZtu5Wr0zLmeYzENGPqExoimIX-XPd0lfBdzb1XBTKtm6Tev14BxuaLrb0_STq4AiMFgsBGEEL6ry50D3Pqvsvod-e3\" alt=\"AWS Elastic Beanstalk \"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">In this hands on we will see how we can make use of AWS CodePipeline to set up a continuous deployment pipeline to deploy versions of an application on Amazon Elastic Beanstalk. We will first navigate to the Amazon Elastic Beanstalk dashboard to explore the pricing structure and its use cases leading to creating a new environment configuring the advanced settings in a private VPC. We will then navigate to the demo source code URL to download the code base and then traverse to the Amazon S3 dashboard, create a new bucket with versioning enabled, and then we will upload the downloaded zip file of the code base to the Amazon S3 bucket from the local machine. Traversing to the Amazon CodePipeline dashboard, we will create a new pipeline with source as Amazon S3 bucket that contains the code base and the destination as the Amazon Elastic Beanstalk environment on which the code is to be deployed. Uploading the code file to the S3 bucket will trigger the CodePipeline initiating the process of deployment on the Elastic Beanstalk environment. We will then navigate to the application URL to test out the code changes and check if the version deployment of the application was successful. We will then extract the code files to the local machine from the zip file, alter the code in the main file, navigate to the newly created Amazon S3 bucket and then redeploy the new zip file to the S3 bucket. After uploading, we\u2019ll be able to see two versions of the zip code file. Uploading the new code file to the S3 bucket will then trigger the code pipeline and initiate the process of deploying the new code base on the Elastic Beanstalk environment. We will then navigate to the application URL again to test out the code changes and check if the version deployment of the application was successful.<\/p>\n\n\n\n<p><strong>To implement this, we will do the following:<\/strong><\/p>\n\n\n\n<ul><li>Navigate to the dashboard after logging into your AWS console.<\/li><li>Navigate to the Amazon Elastic Beanstalk dashboard.<\/li><li>Explore the Amazon Elastic Beanstalk dashboard to view its offerings and pricing structure.<\/li><li>Create a new environment and configure the advanced settings for the environment.<\/li><li>Select a VPC in which you want to create a new environment.<\/li><li>Navigate to the provided URL and download a demo source code.<\/li><li>Create a new bucket in the Amazon S3 console.<\/li><li>Upload the downloaded zip file to the bucket.<\/li><li>Navigate to the AWS CodePipeline dashboard.<\/li><li>Create a new pipeline with the required stages.<\/li><li>Wait for the code to be deployed to the Elastic Beanstalk environment.<\/li><li>Navigate to the Elastic Beanstalk environment dashboard and check the health status after the deployment stage completes on the codepipeline.<\/li><li>Click on the URL provided for the application version and test out the deployment.<\/li><li>Extract the code files to your local machine from the downloaded zip file.<\/li><li>Make new changes in the code base as required.<\/li><li>Add the newly created code file to the zip file.<\/li><li>Navigate to the S3 dashboard and upload the zip file with the new code base.<\/li><li>Check if the code pipeline is triggered.<\/li><li>Once the deployment completes, navigate back to the application version URL and check if the deployment was a success and if the new code is reflected on the UI.<\/li><\/ul>\n\n\n\n<p>Login to the AWS console and navigate to the dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/nAPglCrEhpmyW6TAkZDbc7arcpJ-vd_4t_nfVBzcQet6FyK3IUh5skQvl8RTHGpKdZKbsCnO1H4ScVZ0upGuu-f9Kh3FpZ8z4R6FvIFFsMzM_iJ9lQ33J2wJBvzYZicEEAwJ27u5\" alt=\"\"\/><\/figure>\n\n\n\n<p>Search for the service Elastic Beanstalk and click on the service.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/yL6aEsap3OvGfZUfuCgxrWtVnL-1izVx7PI2IHDwbQb0AddmlNwLomT0YPdI2BDuj6Fgp9ZvGlPhu3Py2yNU72dIoQZ3mHdeIL6sLRlIUJhNCcykCd4FiLxZQ5qiei5M18GF3Orc\" alt=\"\"\/><\/figure>\n\n\n\n<p>You will be navigated to the Elastic Beanstalk dashboard. Click on Environments in the left navigation pane.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/sFTqG8_t3K9bajZcnULdnTQWjDM0dW__5cqdR_mHkGF6KBU4Dqcn8lEZuFCCjPo7GbD0BcrNZBS9D3XtKc8mDWEiz-rItM_ZU5nKhmEqleJtcU7jXPGq0kuJqqwJQtMf5jTAoJdc\" alt=\"Elastic Beanstalk\"\/><\/figure>\n\n\n\n<p>Click on Create a new environment.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/HLtOnnjyrRPrvrkRidbCRd7ETqFwKVPtT0S_icMIfaJ_G9E0uSMm1Q4jy7qMVDdhOFc8TKLfcMfstOJNdkfsBa_0XkzCgieJpJ2CGf9hmyFlQXaytx6nVwpwR0sBIZiZPQrldCcJ\" alt=\"\"\/><\/figure>\n\n\n\n<p>Select Web server environment from the drop-down menu and click Select.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/pkk1wLv4rXaQUdGQUKclKhi1Jw_QKPTxvKhpHxqQlXV0SntbeD8NRwQ7HSm0isJWG_Bye6rlqKMzuJl8nWUM8C0_-X9GTrwTUGhZ7G0N0U_8nnwhpvQHv-jcBGCcyuMHpdZ-ZFfY\" alt=\"Elastic Beanstalk\"\/><\/figure>\n\n\n\n<p>Enter a name for the Application and the Environment name will be pre-populated. You can change the name.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/A-dEQvuP9UBEIJMInXYHM0PG1WXAcyFtynVj7GNYB6h3KQCnoZ2cNyCPMwkGf5q9E_VpDBFxJd6hbRzKkL_zpI4yYGWXaSW52iHg5mTWuJXrUXKOy02pw0A3xkBGtI-am7yPq6No\" alt=\"\"\/><\/figure>\n\n\n\n<p>In case you have a registered domain, you can add the domain and a description under the Environment information.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/kLXthInrXtTOea0r6domBSYbMKDOkkTuSzXGz9Iq1MCowj49M8f9G3sJLEVpWjlHBlg3qEFpD9S5d2_jmLLKTbdaEDblb_0oKYnk_TH0LBDnumb5TPcx-amFInVaeg4Qk3Z4598W\" alt=\"Elastic Beanstalk\"\/><\/figure>\n\n\n\n<p>Select the Platform as PHP from the dropdown and the platform version will be populated.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/dwr4XlnlWRAVz8fvXGAIuL_XyKnTtXE5ioQjfmk0TG-K80Qu393oc0knv3VffWSXhuUTr5E0CAso1LpQ4HZ28_KhDtAy7dDzW6KZvgX-GJZ1q9HhL-BAV3-3lZ35BuxrMAFlLxEB\" alt=\"\"\/><\/figure>\n\n\n\n<p>Scroll down and click on Configure more options.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/BalLtg_ZtXJzKvUxSH_SKqIKcr1vLm-WxuQKVxKYRUJHG8ZObLZ4eaZWjSUrpLE3tF_H01Ejey6oEgYzSwnk8-33usnJz_4AArxvU5nPNK5X4lfI6kogmZzobgseyeU3qlE5-y_u\" alt=\"\"\/><\/figure>\n\n\n\n<p>You can change the presets as per your preference.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/HJoJmCs6YOt2peGRkp6ZLV0prv3NnAXJDHH_QaSnFNpvfELcC8qtOVojdPoXLHFqNwLj9kStBaQIcsdZBmaHwE8uCCFPP2Oumk6wULOhrGJvyKIO96JQiOI9VAHiHKYpMDqbODUX\" alt=\"\"\/><\/figure>\n\n\n\n<p>Scrolling down, you will see there are configurations available for different sections. You may choose to alter the default configurations.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/bkk4T7kw9IwRirxpk8FYLdINO_WmUDaDh50F-JrBdeVR7PJavRhDCXJJM5bOlApYx0n2kYYTk1hFAzOI86KcRIZNwJD-3j2h7cKIaU0voM3B5A8NKOv6QE5_JpTJBgUzATSXyt_1\" alt=\"Elastic Beanstalk\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/UZITj5K9E07Ih0r9-_4h1BzffLcLP7B4Tm_3pwMJZZBXX5PvvBUU0wOrT1DQtvO3ygATZZrgVMK0HJBBSuolnsThzrqXdcIIEa16d8F-HUR7CjWPIQpE2vDILz28IuZTDdt7p5ng\" alt=\"\"\/><\/figure>\n\n\n\n<p>Click on Edit besides the Network section.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/cfybEVfGP4vNbpKAdJXimA3ZO1-L6NBQAehEtpyKIcY2Sb4seQ8tb_Tc7BuhT6onG0RbeCZmkQ2vl2YIuhcfC6OsJRXqGUNnaE2UvHp9Sd77ZMmyiuvl6i3_3SowdjTuUJ7AB_83\" alt=\"\"\/><\/figure>\n\n\n\n<p>Select a VPC from the dropdown. Check the Public IP address and select at least 2 Instance subnets.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/hCROxGjZFlfImIMEl-3rH1FkeqqQ8Sr3nGh3GSU_SEuzBuyEa14XHp-uIPJ_nL1hH8Z68QJfssBme479UAJwYphSUSMDKPHeYi-h7jrZFROrkRpuhPxuqTcySHUyuchDxQOS6Xgz\" alt=\"Elastic Beanstalk\"\/><\/figure>\n\n\n\n<p>Similarly, for the database settings, select both the subnets. Click on Save.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/kLrrm3xKlJwwBBPUAeWkSEAyM4oAyVYIqC9Ii7TGvBhu_REuu5YjBI7j8m0u-6Dh5CySGfGTOTiB5NawqVHqx61fy6wLAxR4Vm_q-iyENedwPjx3zwLX2QaqrvZyDsF-yeTWzDq8\" alt=\"\"\/><\/figure>\n\n\n\n<p>Once done, click on Create environment.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/iESQlALqbYGnd0UfVEPYFNeFrFyDBkBGs97BOFblR-5w9k2lHMkwVUEgmaWo6eIfFhj6jofpXw63B90d2tjCOpKI7jufqqxV1acbsp1U6bKCa5has185YjpOZy7WbrrlBxA8ViJv\" alt=\"\"\/><\/figure>\n\n\n\n<p>Environment creation process will be initiated. Wait for a few minutes for the environment to be created.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/n6wA2Obzt8Y3ZJl8ip2gEt1LYJDXBKv1_ZvUd4emA6GnMvBxkR1WJf6t2yKebVLrF7kpNMF4efvyigVF56P49Gh6o5yCmSXzB2Ml3O1zI_5ckLoxwugu6UywKQ57QIeySOxKm9TO\" alt=\"Elastic Beanstalk\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Meanwhile, navigate to the below URL. Go to the dist folder and select the file. Click on View raw and a zip file of the code base will be downloaded to your system.<\/p>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/github.com\/awslabs\/aws-codepipeline-s3-aws-codedeploy_linux\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/DKrydcUkk_oHoIi77LgaGekh7b-9HCdjcHOAs4n5Q-N8guX6P_4H4R4_BUVuf11nuB-csGqiXsc7OXmRSb74XODLgPKdO4Lk-sBZr3_ya4vtJFERyOYh0H-A4j6m04MJWU_BDPdK\" alt=\"\"\/><\/figure>\n\n\n\n<p>Once the environment creation process completes, you will see the message as shown in the image below.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/GoJ1lIseBg33UR1LO_vFKgmkHK9qX22__YNQqzIpPcvIb1naz-b2huITktAbx41B6B94hmYX9l5TrP6z_aMjtTglSHI9z4J0XvGDVjH5HqlxO562cw0wQZuSbXpeozN7mek_I3Sl\" alt=\"\"\/><\/figure>\n\n\n\n<p>Refresh the page and you will see the environment created with the health status as Ok.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/uKFqzwnYfRI-gbkH68lbbODCdcIqaXXCZNt1jRC2UXyRsgykSUJF8juyIFe6kYhuiKvTG6hHCfOAUPA8ajLI7wljbAhB4gRZ_cSFPJzhcT7S7ownB9ojJW8ttHs7H96_etDZOhJc\" alt=\"Elastic Beanstalk\"\/><\/figure>\n\n\n\n<p>Search for S3 service in the search bar and navigate to the dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/u6CFv1vW_GGGAef5QgG2VK319l16_XHMDqH7UFW4UNMNmm7GYbq6jm3hlkhYzZh-cNOzDW9je7NHWrmt8wD0FANPYMUh8ULVncpznizbTjsQU76kcfX283WyEcm-pMyriFIy9lvy\" alt=\"\"\/><\/figure>\n\n\n\n<p>Click on Create bucket.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/HxkfdQikVmnJDRxeCzwnK3fbyy-BXapz8pbG8FOugTKG6ULY1yRHwkihpAMnB66LyvBMW9tZwbhb_dN01bLAPQ5MVT33yWs1-tvlA7LzbOtgVdVCIrTPVGZSOggAK_520NguseHr\" alt=\"\"\/><\/figure>\n\n\n\n<p>Enter a name for the bucket and select the AWS region.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/esxGQkN6AjgfPTWJVcK-jJhMXqrSaa1_GNXj8YTRlfrS-2T9-qalyfse7whWzJ0cOcb0WeG4cyx3votBkoFaWHAuUpJQ0AISD2P-frooJpaU2Ro0xFTZoL8wy53M8YJe5AEFNF6-\" alt=\"\"\/><\/figure>\n\n\n\n<p>Check the box for Block all public access and under Bucket versioning, select Enable.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/w7JJ4Hdvx7i2GTTZe2ty6RMuU2kLkE0-cXaUqKIyCRXlT2A8K6D76attin4bg7g9xt74wVlkD5iMvJ0JqeLicqyTE28448BYhDyZJKOHROSDku4AQR5mrD1izvpcgOEtCTLOsnYv\" alt=\"Elastic Beanstalk\"\/><\/figure>\n\n\n\n<p>Scroll down and click on Create bucket.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/B3ygfZziCOaiIcSe1PvTUDiHI2TYrGdHtcBEL7_3wfhA4QfhS4l97F161diwWXRoCb7UG-hW4ZNL7sY8Vb9PaNLcM0dXaMVA0QmL5dZTpnWxTBWiYuEOkHjkNrHps8SrLJjeGSbP\" alt=\"\"\/><\/figure>\n\n\n\n<p>On success, you will see the message as shown in the image below.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/wHcPMl0Ok6x4et6V0HaA3KB2G3ONFF_eIBc0P82LTDBCqZyI8fb2OHYtFkKXoHi1yDRHR06n-md62cbRn8EzGgMbcZtuXdU8VR98yJk6_MET5ZdUYjLOFoAoikXCvNYj5ROTbstu\" alt=\"\"\/><\/figure>\n\n\n\n<p>Open the newly created bucket and click on Upload.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/Eqg-9uP5t77nFqQ6hv1knShndceRe7_y-jyx-bJIvO1bRTlXSnvy8LCsnvh1uDuYnDCQoh8wwD0N3QVdphFvy7RdJa04Osh-ikncgxloKE-aIQK6CuwxglfzXUE11efXZNb6kwes\" alt=\"\"\/><\/figure>\n\n\n\n<p>Select the zip file that you downloaded above from the local machine and click on Upload.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/XH0tM31hz-tgcopUtCz6r--qwNRj2j5RUIr0_1rAvcqX1HWs3VXnKVCb7sws3m6GaImzw4tJUlMRNFbVXVi-cK7xFsrSFMFB8bgoihQ2pbB4rMD1IkKDC67eqhW-M5IpeVXNI_-I\" alt=\"\"\/><\/figure>\n\n\n\n<p>On success, you will see the file added to your bucket.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/Dk76BWia0l3GyIv6Fxshb2FuY8ygd9G4Sgaz_Cew35SakA_NVxEse2xEDNJNw6PtdPcdnkFaGcqK3AxkBrIohCZrsaka9bjbedRa7xLhMjQ71LMwrfyRcY1JKTJEo2oGP0_OZ1Ki\" alt=\"\"\/><\/figure>\n\n\n\n<p>Now, search for Amazon CodePipeline and click on the service.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/gtWBZzaP4rrs76xNAlI0GaKdsE_cwAhj8jFrDjXvy5h0mt4-3CfLeyOZNy96ir3LHsabg7Eqq3BYmPaBQl9h8auhagwo9UmJkD-2jLRfBKkduVGk9eFIySaNxknKxzOuLNkZ6_Dm\" alt=\"\"\/><\/figure>\n\n\n\n<p>Click on Create pipeline.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/98tn8IRngntfvPOSQgQW0UR31wTun5A6sXt7he4a2vRuo34N8qrMUsmPEXmk8pA9ufxn2JB-36yH_q7A-0nAZy-R9sly_aOXtU8kJAeNwtPPInWoje-yS95l7oPbtpjaRoRayyhK\" alt=\"Elastic Beanstalk\"\/><\/figure>\n\n\n\n<p>Enter a name for the pipeline and select a new service role option.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/Z8YrdO98hRjkx2uCW4saoHz5HwpMh9cKmn7SGuBkcN6Omxrz6QYz4B4qM1p39icrIUNarlkox2rmYA_P-2pxT4PHoVoI1y8PsiYZN2nrF4184CMwJ-_2i4N96UKR27cpp_FKLygE\" alt=\"\"\/><\/figure>\n\n\n\n<p>Under Advanced Settings, select the option as shown below. Click on Next.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/JOCH94TJGztxA4kL_XeuY9oUibonF4WhaHaXgQD9RmK2zIfK-VoYGqF2p15LOwlzCqeTdIx8Esv_OTHcGMQvqYiEM8lhHjQcSabWsc_lnnLVdNY0v3z6d4XeO8Cb7J2Bn442Sw4g\" alt=\"Elastic Beanstalk\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Select the S3 bucket as the source provider, select the newly created bucket and add the object key. Click on Next and skip the Build stage.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/GoAqvCiayDL_52yL98Q-NfrD3JP79qtCeM30m9Oo7flHqdGzFpk41TojpfHwmgj_ItQYadsVwor7-zIkTB5SL7VHxJbRW3bFmXs38Mlx1SpfPnEKRpjQMKRKZqy1HSR5B6YOhJcg\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">For the Deploy stage, select the Deploy provider as AWS Elastic Beanstalk, a region, the application name of the elastic beanstalk environment that you created above, and the Elastic Beanstalk environment name. Click on Next.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/OmZNcOhhioSWieV4TW2WFeY7HEonxCdv0zCPp4d6rHw4A_hetKFCAxeUY33n_O18OggI03T4biRUHKHanYxePWUF9Mh-Xpy2MknsLnWYc366qWbetnQG1JH4IzklNG8LrqzvNaTq\" alt=\"\"\/><\/figure>\n\n\n\n<p>Review the changes.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/gWQk5CROnDK75EmpQNkV_80IjFP6Z77Qite87yFMVyAtNz2-xUKC8-jjSFvJ7bDxM1jkHxXPbJZHtSJznK84jzkW0_3uhne_0Z4qTzP_zyFPyZlYLK5nFWKBFOaiAb9tthz28SSU\" alt=\"\"\/><\/figure>\n\n\n\n<p>Click Create Pipeline at the bottom of the page.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/npdngcm9HRvv7JeYtkijEKMXaJCHmDNKHP9jmotAidyCJa1fyhDTIveHbu1vPjy3fVBumty95wr4LrvqPI4BXKFE_U6V53-XPWxB_R0B4H3GfsF4kPcwp8PQ-inBkzf3yp7ooIVR\" alt=\"Elastic Beanstalk\"\/><\/figure>\n\n\n\n<p>The deployment will begin. Once the source is updated, the deployment process will begin.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/8QnA6brMUMdUr1UvP3NjKFXBIlFiBk5DqIy2tK1HIvM5Bor7_xy7YQZO8LqlUXtELAt3zYj-UHnIIcOmFl8bpNODfFS4vjtXxz7rzzFW0-8gBLpoomUN6vH8WCvVv4du0HIhf1B8\" alt=\"Elastic Beanstalk\"\/><\/figure>\n\n\n\n<p>If you navigate back to the Beanstalk environment, the environment will start updating.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/Gt8UKAH4mviCBw4EzQNyJ4KyKdXRc1SozjgHyhvFFHuBRLi-1bxHEXEH7kXEC4gG0Xf9iA0OeZmFftfOXhksyEQZpAIcE5aA9YgVyIG9tRV3A-3tph0FFwAZ3L27ToOClLAvpPLW\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Once the deployment completes, you will see the updates under the recent events tab. Once the deployment completes and the Health status changes to Ok, click on the environment URL below the environment name.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/3R9eVGYCuvtxudPvQN0AooMHxWVxpBIbCiZPOSobkXvPfdKbEsj5CS7oeUnS2F3y0jbp2YXiwcOblIHKrXS5JzV9Vm-eWiRnBG5hFgO6PHVGZkqFHGAc3KGFQT_ZYLdTIX0CaF4q\" alt=\"\"\/><\/figure>\n\n\n\n<p>You will see the application deployed and will get to see the page as shown in the image below.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/X-R8M_5gSHHDuo4UjUoGMre8MB7GEXsnKTS7a17eVFveEPq323BHP0bMPbqk29LvwX3xtWyHezF6EvxSzr7oIPuT6nM0ctUPrVcCf8pOMgwLe_S_iL82mqqNCjp3k5nIRw3FnGjf\" alt=\"Elastic Beanstalk\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Now, extract the index.html file from the downloaded zip file. Make some changes in the file as you want. The below file snippet contains the changes we made in the file. Once you make the changes, add the newly updated file in the same zip folder replacing the old index.html file.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/SZsvLZj3RasxACUwBGTx6ySK54YoRHswz4PJsHR_17wEfCFw60INceaTFK4iP67Pb8y-5ms9cpPiDEFEgLpvfLuBvwVP64ZQJa1YARtaXRoufGIQf2q0DHnQz-zkpxYwzjVSNwfL\" alt=\"Elastic Beanstalk\"\/><\/figure>\n\n\n\n<p>Navigate to the S3 bucket dashboard. Click on Upload.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/cuccmRuh3Rn8MczEiMPtU96nYZ7SD-U7cUkRaNxAXWIWrT1c4Gyi66QVUM9nAxVUAy_2rWWKySUaSkHH7RHIhIaAFbw_PIsQO8A1YEgSybiiz4pardvgxWuaxh_wvqVPxOvUE8qY\" alt=\"\"\/><\/figure>\n\n\n\n<p>Upload the new zip file. Click on Upload.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/-JLNM7gf_faVccDLHZYBM9bIXJK1-PzvDMr3MUm6UF0FWzIlYzTySc-dsEEl5LoConcAdRr_RCOPALVT_ob1yh15r6wBLEDOaxxBw-ke9AC_3Kfmxwdp83jB7U4bYTAD3olTvu5h\" alt=\"Elastic Beanstalk\"\/><\/figure>\n\n\n\n<p>Toggle the versions to on and you will see the newly zip file added in the bucket.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/MM8DiY_aEAy_8gB3iKUG7WGklfonL6eBi4XfBN7ENMBL2XeC5mJ-ZO-IQIG_PmQzrj5CcNn_9ddfer3wV0-qzh75dEyCPuYjqAxAYaGU9_hIULVHkU6NJcyRCR63aj1f134SmFGg\" alt=\"\"\/><\/figure>\n\n\n\n<p>The code pipeline will be triggered to update the new version.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/hEJ5aHB9lMQ2TET9-B2QR4P-ME6fFXHkKydbF6iSDMooKi39OExxdonD04iXHRPxSZ-OiodN5eDQRTu6b7YofASS6mLRHEF0LqzKAKS_iWNKCegrJNBrD-HmKXM_-w_g1hJDXIuI\" alt=\"\"\/><\/figure>\n\n\n\n<p>Once the deployment completes, navigate back to the same URL and refresh the page.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/kX4nYtt5t1g7llsXakryPq99fQLQhRGBm2li7gPA_cctwYYZAeACJo-GlJrTga5Efv-v6mviHtB1uSgRyX8X2BzNB-Hv9VMKwm5rjo-StbXRQMh9tzaChMHR1WG_VfQ0fRI2_oxw\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">You will see the updated website as per the changes you made in the code base to deploy a new version for the application.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/GZE20thH0LCZYw9rsLspw6AEo_XHG_yvU31Wj7dMjClUlgj3AXpsw4cxSxtR5K7yoVAmuYbWq43hOgzkvJGldLzDsFejWrR-Vbch0nWiodzpoowNOYOP8NJXDiYTPrKYAgkGnlGH\" alt=\"Elastic Beanstalk\"\/><\/figure>\n\n\n\n<h2><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p class=\"has-text-align-justify\">In this blog, we saw how we can make use of AWS CodePipeline to set up a continuous deployment pipeline to deploy versions of an application on Amazon Elastic Beanstalk.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">We first navigated to the Amazon Elastic Beanstalk dashboard to explore the pricing structure and its use cases leading to creating a new environment configuring the advanced settings in a private VPC. We then navigated to the demo source code URL to download the code base and then traversed to the Amazon S3 dashboard, created a new bucket with versioning enabled, and then we uploaded the downloaded zip file of the code base to the Amazon S3 bucket from the local machine.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">Traversing to the Amazon CodePipeline dashboard, we created a new pipeline with the source as an Amazon S3 bucket that contained the code base and the destination as the Amazon Elastic Beanstalk environment on which the code was to be deployed. Uploading the code file to the S3 bucket triggered the CodePipeline initiating the process of deployment on the Elastic Beanstalk environment.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">We then navigated to the application URL to test out the code changes and check if the version deployment of the application was successful. We then extracted the code files to the local machine from the zip file, altered the code in the main file, navigated to the newly created Amazon S3 bucket, and then redeployed the new zip file to the S3 bucket. After uploading, we saw the two versions of the zip code file.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">Uploading the new code file to the S3 bucket then triggered the code pipeline again and initiated the process of deploying the new code base on the Elastic Beanstalk environment. We then navigated to the application URL again to test out the code changes and check if the version deployment of the application was successful.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">We will discuss more use cases for the services used in our upcoming blogs. Stay tuned to keep getting all updates about our upcoming new blogs on AWS and relevant technologies.<\/p>\n\n\n\n<p>Meanwhile \u2026<\/p>\n\n\n\n<p><strong>Keep Exploring -&gt; Keep Learning -&gt; Keep Mastering<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-justify\">This blog is part of our effort towards building a knowledgeable and kick-ass tech community. At <a href=\"https:\/\/www.workfall.com\/\">Workfall<\/a>, we strive to provide the best tech and pay opportunities to AWS-certified talents. If you\u2019re looking to work with global clients, build kick-ass products while making big bucks doing so, give it a shot at<a href=\"https:\/\/www.workfall.com\/partner\/\"> workfall.com\/partner<\/a> today.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\">11<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span> AWS Elastic Beanstalk allows us to quickly deploy and manage applications without having to worry about the underlying infrastructure. One of its major benefits is that it reduces the complexity of management of the infrastructure without any restrictions thereby making it easy for developers to focus on just building the application and least worry about [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":680,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[2],"tags":[3,196,31,29,226,6],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to set up a continuous deployment pipeline to deploy versions of an application on AWS Elastic Beanstalk using AWS CodePipeline (Part 2)? - The Workfall Blog<\/title>\n<meta name=\"description\" content=\"AWS Elastic Beanstalk allows us to quickly deploy and manage applications without having to worry about the underlying infrastructure.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to set up a continuous deployment pipeline to deploy versions of an application on AWS Elastic Beanstalk using AWS CodePipeline (Part 2)? - The Workfall Blog\" \/>\n<meta property=\"og:description\" content=\"AWS Elastic Beanstalk allows us to quickly deploy and manage applications without having to worry about the underlying infrastructure.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/\" \/>\n<meta property=\"og:site_name\" content=\"The Workfall Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/workfall\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-26T10:59:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-28T05:59:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/18.141.20.153\/learning\/blog\/wp-content\/uploads\/2021\/11\/CoverImages_1200x628px-7.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@workfall\" \/>\n<meta name=\"twitter:site\" content=\"@workfall\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Workfall\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"20 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#organization\",\"name\":\"Workfall - Hire #Kickass Coders On Demand\",\"url\":\"https:\/\/learning.workfall.com\/learning\/blog\/\",\"sameAs\":[\"https:\/\/www.instagram.com\/workfall\/\",\"https:\/\/www.linkedin.com\/company\/workfall\/\",\"https:\/\/facebook.com\/workfall\",\"https:\/\/twitter.com\/workfall\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i1.wp.com\/18.141.20.153\/learning\/blog\/wp-content\/uploads\/2021\/10\/cropped-WF_logo.png?fit=400%2C400\",\"contentUrl\":\"https:\/\/i1.wp.com\/18.141.20.153\/learning\/blog\/wp-content\/uploads\/2021\/10\/cropped-WF_logo.png?fit=400%2C400\",\"width\":400,\"height\":400,\"caption\":\"Workfall - Hire #Kickass Coders On Demand\"},\"image\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#website\",\"url\":\"https:\/\/learning.workfall.com\/learning\/blog\/\",\"name\":\"The Workfall Blog\",\"description\":\"#Tech #Remote #Jobs\",\"publisher\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/learning.workfall.com\/learning\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/#primaryimage\",\"url\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/CoverImages_1200x628px-7.png\",\"contentUrl\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/CoverImages_1200x628px-7.png\",\"width\":1200,\"height\":628,\"caption\":\"Application on AWS Elastic Beanstalk\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/#webpage\",\"url\":\"https:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/\",\"name\":\"How to set up a continuous deployment pipeline to deploy versions of an application on AWS Elastic Beanstalk using AWS CodePipeline (Part 2)? - The Workfall Blog\",\"isPartOf\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/#primaryimage\"},\"datePublished\":\"2021-11-26T10:59:24+00:00\",\"dateModified\":\"2023-04-28T05:59:35+00:00\",\"description\":\"AWS Elastic Beanstalk allows us to quickly deploy and manage applications without having to worry about the underlying infrastructure.\",\"breadcrumb\":{\"@id\":\"https:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/learning.workfall.com\/learning\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to set up a continuous deployment pipeline to deploy versions of an application on AWS Elastic Beanstalk using AWS CodePipeline (Part 2)?\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/#webpage\"},\"author\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/cab8236044692bc5b27606b13167794a\"},\"headline\":\"How to set up a continuous deployment pipeline to deploy versions of an application on AWS Elastic Beanstalk using AWS CodePipeline (Part 2)?\",\"datePublished\":\"2021-11-26T10:59:24+00:00\",\"dateModified\":\"2023-04-28T05:59:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/#webpage\"},\"wordCount\":2070,\"publisher\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/CoverImages_1200x628px-7.png\",\"keywords\":[\"AWS\",\"CI\/CD pipeline\",\"CICD\",\"codepipeline\",\"elastic beanstalk\",\"workfall\"],\"articleSection\":[\"AWS Cloud Computing\"],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/cab8236044692bc5b27606b13167794a\",\"name\":\"Workfall\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2023\/09\/avatar_user_1_1693914404-96x96.png\",\"contentUrl\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2023\/09\/avatar_user_1_1693914404-96x96.png\",\"caption\":\"Workfall\"},\"sameAs\":[\"https:\/\/www.workfall.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to set up a continuous deployment pipeline to deploy versions of an application on AWS Elastic Beanstalk using AWS CodePipeline (Part 2)? - The Workfall Blog","description":"AWS Elastic Beanstalk allows us to quickly deploy and manage applications without having to worry about the underlying infrastructure.","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:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/","og_locale":"en_US","og_type":"article","og_title":"How to set up a continuous deployment pipeline to deploy versions of an application on AWS Elastic Beanstalk using AWS CodePipeline (Part 2)? - The Workfall Blog","og_description":"AWS Elastic Beanstalk allows us to quickly deploy and manage applications without having to worry about the underlying infrastructure.","og_url":"https:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/","og_site_name":"The Workfall Blog","article_publisher":"https:\/\/facebook.com\/workfall","article_published_time":"2021-11-26T10:59:24+00:00","article_modified_time":"2023-04-28T05:59:35+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/18.141.20.153\/learning\/blog\/wp-content\/uploads\/2021\/11\/CoverImages_1200x628px-7.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_creator":"@workfall","twitter_site":"@workfall","twitter_misc":{"Written by":"Workfall","Est. reading time":"20 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/learning.workfall.com\/learning\/blog\/#organization","name":"Workfall - Hire #Kickass Coders On Demand","url":"https:\/\/learning.workfall.com\/learning\/blog\/","sameAs":["https:\/\/www.instagram.com\/workfall\/","https:\/\/www.linkedin.com\/company\/workfall\/","https:\/\/facebook.com\/workfall","https:\/\/twitter.com\/workfall"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i1.wp.com\/18.141.20.153\/learning\/blog\/wp-content\/uploads\/2021\/10\/cropped-WF_logo.png?fit=400%2C400","contentUrl":"https:\/\/i1.wp.com\/18.141.20.153\/learning\/blog\/wp-content\/uploads\/2021\/10\/cropped-WF_logo.png?fit=400%2C400","width":400,"height":400,"caption":"Workfall - Hire #Kickass Coders On Demand"},"image":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/logo\/image\/"}},{"@type":"WebSite","@id":"https:\/\/learning.workfall.com\/learning\/blog\/#website","url":"https:\/\/learning.workfall.com\/learning\/blog\/","name":"The Workfall Blog","description":"#Tech #Remote #Jobs","publisher":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/learning.workfall.com\/learning\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/#primaryimage","url":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/CoverImages_1200x628px-7.png","contentUrl":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/CoverImages_1200x628px-7.png","width":1200,"height":628,"caption":"Application on AWS Elastic Beanstalk"},{"@type":"WebPage","@id":"https:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/#webpage","url":"https:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/","name":"How to set up a continuous deployment pipeline to deploy versions of an application on AWS Elastic Beanstalk using AWS CodePipeline (Part 2)? - The Workfall Blog","isPartOf":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/#primaryimage"},"datePublished":"2021-11-26T10:59:24+00:00","dateModified":"2023-04-28T05:59:35+00:00","description":"AWS Elastic Beanstalk allows us to quickly deploy and manage applications without having to worry about the underlying infrastructure.","breadcrumb":{"@id":"https:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/learning.workfall.com\/learning\/blog\/"},{"@type":"ListItem","position":2,"name":"How to set up a continuous deployment pipeline to deploy versions of an application on AWS Elastic Beanstalk using AWS CodePipeline (Part 2)?"}]},{"@type":"Article","@id":"https:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/#article","isPartOf":{"@id":"https:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/#webpage"},"author":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/cab8236044692bc5b27606b13167794a"},"headline":"How to set up a continuous deployment pipeline to deploy versions of an application on AWS Elastic Beanstalk using AWS CodePipeline (Part 2)?","datePublished":"2021-11-26T10:59:24+00:00","dateModified":"2023-04-28T05:59:35+00:00","mainEntityOfPage":{"@id":"https:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/#webpage"},"wordCount":2070,"publisher":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#organization"},"image":{"@id":"https:\/\/18.141.20.153\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-2\/#primaryimage"},"thumbnailUrl":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/CoverImages_1200x628px-7.png","keywords":["AWS","CI\/CD pipeline","CICD","codepipeline","elastic beanstalk","workfall"],"articleSection":["AWS Cloud Computing"],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/cab8236044692bc5b27606b13167794a","name":"Workfall","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/image\/","url":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2023\/09\/avatar_user_1_1693914404-96x96.png","contentUrl":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2023\/09\/avatar_user_1_1693914404-96x96.png","caption":"Workfall"},"sameAs":["https:\/\/www.workfall.com"]}]}},"jetpack_featured_media_url":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/CoverImages_1200x628px-7.png","jetpack-related-posts":[{"id":675,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-set-up-a-continuous-deployment-pipeline-to-deploy-versions-of-an-application-on-aws-elastic-beanstalk-using-aws-codepipeline-part-1\/","url_meta":{"origin":679,"position":0},"title":"How to set up a continuous deployment pipeline to deploy versions of an application on AWS Elastic Beanstalk using AWS CodePipeline (Part 1)?","date":"November 24, 2021","format":false,"excerpt":"Do you have concerns about managing and deploying web applications? With AWS Elastic Beanstalk, you can launch your full web application in just a few minutes by simply uploading the code. Starting with capacity provisioning, load balancing, auto-scaling, and application health monitoring, this service will take care of the whole\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"AWS Elastic Beanstalk - Workfall","src":"https:\/\/i2.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/CoverImages_1200x628px-6.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1083,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-deploy-nestjs-microservices\/","url_meta":{"origin":679,"position":1},"title":"How to Deploy NestJS Microservices to AWS Elastic Beanstalk?","date":"July 26, 2022","format":false,"excerpt":"AWS Elastic Beanstalk is an AWS service on which you can deploy your application and it offers orchestration for various AWS services such as EC2, and S3 out of the box through auto-scaling, load-balancing, and capacity provisioning. All you have to do is upload your code and AWS Elastic Beanstalk\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"How to Deploy NestJS Microservices to AWS Elastic Beanstalk?","src":"https:\/\/i1.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2022\/07\/NestJS.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1038,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-ssm-parameter-store-in-aws-elastic-beanstalk-instances\/","url_meta":{"origin":679,"position":2},"title":"How to use AWS SSM Parameter Store in AWS Elastic Beanstalk instances?","date":"July 12, 2022","format":false,"excerpt":"Almost every developer makes use of environment variables. They are excellent for establishing parameters that alter depending on the system's surroundings. Sadly, they struggle to scale. There are methods to accomplish it, but they aren't enjoyable. Here's why AWS can replace environment variables (or at least reduce your reliance on\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"AWS SSM Parameter Store in AWS Elastic Beanstalk instances","src":"https:\/\/i1.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2022\/07\/Cover-Images_Part2-1-1.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":361,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-ci-cd-workflow-using-aws-codestar\/","url_meta":{"origin":679,"position":3},"title":"How to create CI\/CD workflow using AWS CodeStar?","date":"November 3, 2021","format":false,"excerpt":"DevOps and CI\/CD are the future of software development. AWS CodeStar makes building a full CI\/CD workflow easier and helps us to create a CI\/CD toolchain using AWS developer tools - CodeCommit, CodeBuild, and CodePipeline In this blog we will demonstrate how to create CI\/CD workflow using AWS CodeStar. Before\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"Create CI\/CD workflow using AWS CodeStar","src":"https:\/\/i2.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/CodeStar.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1066,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-architect-nestjs-microservices-with-aws-elastic-beanstalk\/","url_meta":{"origin":679,"position":4},"title":"Architect NestJS Microservices with AWS Elastic Beanstalk","date":"July 19, 2022","format":false,"excerpt":"In the AWS Cloud journey, we come across Elastic Beanstalk to be better than other services in managing the infrastructure environments effectively. On the other hand, NestJS is popular in creating efficient and scalable server-side applications, and is relatively a new option for the backend framework - it is lightweight,\u2026","rel":"","context":"In &quot;Backend Development&quot;","img":{"alt_text":"Architect NestJS Microservices with AWS Elastic Beanstalk","src":"https:\/\/i1.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2022\/07\/NestJS-Microservices-1.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":492,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-set-up-aws-copilot-to-build-release-and-operate-containerized-applications-on-ecs-and-fargate-using-a-cli-2\/","url_meta":{"origin":679,"position":5},"title":"How to set up AWS Copilot to build, release and operate containerized applications on ECS and Fargate using a CLI?","date":"November 10, 2021","format":false,"excerpt":"Are you completely drained by worrying about your infrastructure over architecture? Well, AWS Copilot supercharges your application by allowing you to set up infrastructure, build your application with many microservices, set up a pipeline to automate release and monitor the stack and application's status, and add-ons all from a single\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"AWS Copilot - Workfall","src":"https:\/\/i1.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/copilot1.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/posts\/679"}],"collection":[{"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/comments?post=679"}],"version-history":[{"count":4,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/posts\/679\/revisions"}],"predecessor-version":[{"id":1796,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/posts\/679\/revisions\/1796"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/media\/680"}],"wp:attachment":[{"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/media?parent=679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/categories?post=679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/tags?post=679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}