{"id":239,"date":"2021-10-28T16:02:57","date_gmt":"2021-10-28T16:02:57","guid":{"rendered":"http:\/\/18.141.20.153\/?p=239"},"modified":"2025-08-22T08:02:49","modified_gmt":"2025-08-22T08:02:49","slug":"how-to-set-up-aws-copilot-to-build-release-and-operate-containerized-applications-on-ecs-and-fargate-using-a-cli","status":"publish","type":"post","link":"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\/","title":{"rendered":"How to set up AWS Copilot to build, release and operate containerized applications on ECS and Fargate using a CLI?"},"content":{"rendered":"<span class=\"rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\">9<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/2daj2iq-0JbuKEKxd3acYU2dKTNzPNt4xMJZrpeYS_kYqjSDa9t5JH5n9-prurOyZwg5gRWHEMCfChv5OaGrFyNrdiuM_U-HSHBv-QPaaBIEIEzyNA4-slmzEmuNUGqRyXr-PeMr\" alt=\"How to set up AWS Copilot to build, release and operate containerized applications on ECS and Fargate using a CLI?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">AWS Copilot is a command line interface (CLI) that allows users to launch and manage containerized apps on AWS fast and efficiently. AWS Copilot offers a simple declarative set of commands, as well as examples and guided experiences to assist clients in deploying quickly.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">Copilot automates each stage of the deployment lifecycle, including pushing to a registry, generating a task definition, and starting a cluster, after you&#8217;ve written your application code. For new applications, default application types are offered based on AWS best practices to boost developer productivity and simplify container operating in the cloud. In this blog, we will see how we can make use of AWS Copilot CLI to deploy a containerized web application easily and quickly.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">We will also see how we can install the copilot command line using which we will deploy the application and then finally test out the deployment by accessing the application. We will also have a look at some of the debugging commands for the deployed application.<\/p>\n\n\n\n<p>Refer to Part 1 of the blog <a href=\"https:\/\/www.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\/\">here<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/dFk_m2qwb_pe7vnqXkCyd4I8-xU5pnILQHNZtP2-g5MLPbSTloyvlG3Tr2giMY0Hw8yrqGITqlz4fMaAqI5Jhspm_xr-FSxAxxu1Walsrnk134XI97SCIZ160D5ztS7BK2iYNIJF\" alt=\"\"\/><\/figure>\n\n\n\n<h2><strong>Hands-on<\/strong><\/h2>\n\n\n\n<p class=\"has-text-align-justify\">In this hands-on, we will see how we can make use of AWS Copilot CLI to deploy a containerized web application easily and quickly. We will first create a new user with Administrative Access after which we will download the AWS CLI on the local machine in a project directory.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">We will then install the AWS CLI following the steps of installation and then configure the AWS CLI with the newly created user credentials. For this blog, we will be cloning an application that is added to one of our repositories.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">After cloning the repository, we will then download the copilot command in the project directory. After which we will install Chocolatey on Windows and then using Chocolatey we will install docker. Using the docker CLI, we will create a docker image in the project directory with the help of a Dockerfile present in the project directory.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">We will then deploy the application using the copilot CLI and test the deployed application. Finally, we will go through some of the debugging commands for further purposes.<\/p>\n\n\n\n<p><strong>To implement this, we will do the following:<\/strong><\/p>\n\n\n\n<ul><li>Login to your AWS console and navigate to the AWS console.<\/li><li>Navigate to the IAM dashboard and create a new user with Administrative access.<\/li><li>Install the AWS CLI in a project directory on your local machine either using the command line or downloading the setup manually.<\/li><li>Navigate and follow the various steps to set up the AWS CLI in the project directory.<\/li><li>Configure AWS in your project directory with the newly created user credentials.<\/li><li>Clone the repo in a project directory.<\/li><li>Download the copilot command using Powershell.<\/li><li>Check for the Execution Policy permissions.<\/li><li>Install chocolatey on windows.<\/li><li>Install docker using chocolatey.<\/li><li>Check for docker installation.<\/li><li>Build a docker image in the project directory.<\/li><li>Execute the copilot command and initialize copilot in the project directory.<\/li><li>Follow the steps to configure and deploy the application.<\/li><li>Test the deployed application.<\/li><li>Use a single command to deploy the application.<\/li><li>Use other commands for debugging purposes.<\/li><\/ul>\n\n\n\n<p class=\"has-text-align-justify\">Login to your AWS console and navigate to the AWS homepage.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/P65dc0XEJ5IVjtQn1PzFtuPiY1fVBeh0xCpwLjyljYZcy72O80WKvf-l2quJ7sxRSreq-jP8N62JFw_o_7La9YdVj-Dp9YCmCiw6zB8VCZ4d3joh2q3tKBOWmd5d8rAeG2mdForO\" alt=\"How to set up AWS Copilot to build, release and operate containerized applications on ECS and Fargate using a CLI?\"\/><\/figure>\n\n\n\n<p>Search for the IAM service and navigate to the IAM dashboard to create a new user.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/7-UxUutM0puBzB9vfo93d2MRTVXtyLXcIA92fpcPsZABZpYLNBLLekQ5DQY674lKyRvo1v4n6Yw6K_Wi4DaB6Ba8xlAnH38zXRchAsE7H8wVfwWnG8Xy__tTmhlNurRL2z163M6I\" alt=\"How to set up AWS Copilot to build, release and operate containerized applications on ECS and Fargate using a CLI?\"\/><\/figure>\n\n\n\n<p>Enter a username for the user and under access type, select Programmatic access. Click on Next:Permissions.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/WJAYXlhZNMIUQsBKkZKfV1C3S5_ilNcLOsi63-WhXW-1DiNRUpUmzTwjAcbO3ba-WHS2N1q8cBam0lsE3p7hXs_BDNW7I3R0NzKw8WFNTpeOxlcEKjZqfaJntB9ku-eR964HMDXO\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Select Attach existing policies directly and check the AdministratorAccess policy from the list of policies. Click on Next:Tags.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/i5qDLVgqSjW3Gn_GRsUkVh0tAslJaSMuA_1kPzVR1ijs0-turJSgLgBVr8YAhK6smgr-PHWb-ZuaeKsgU1657N4AE_XG8c5Klmu-tdZlezvg1fqp0YbMp0fUhuQDRQ8OwdBubBE0\" alt=\"How to set up AWS Copilot to build, release and operate containerized applications on ECS and Fargate using a CLI?\"\/><\/figure>\n\n\n\n<p>Enter a tag for your user (if required). Click on Next:Review.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/cp552zD9damferY_mLKGyNy7P-F1-eP_ih4ujKo5G45bMnMQ97etEkZDJRlILN6CnQsGiyJ9kj-r2h1zODYZ5-jAa1nKW26YVfoXQmzyIlxYhn7HN54AI-9vvQc5ikppSVR2NRGI\" alt=\"\"\/><\/figure>\n\n\n\n<p>Review the changes and once done, click on Create user.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/tOr4uccuT0K-VK6g8CDtMtxCqS70SRAzH_ij5VgUgfdVeaXZjZqhM_SpxF06rhiLLzxgRRldiW8oqJm9v0dFO3GDcxkSIb17rdkXjdf5cRKXS_bTwLSsCkLXaKE6O3mrTCGrpG_9\" alt=\"How to set up AWS Copilot to build, release and operate containerized applications on ECS and Fargate using a CLI?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Click on Download .csv to download the details for the newly created user. Make sure you note down the Access Key ID and Secret access key.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/jqseuhdr2Pwh5pjKxGaAQcsm3TvBuQQL8rsG0QMGlgtjGOP-pZLhrC3fYyHqAB5Z0DwYfvGrhzWVoGa-fCWfpMBtSMzCTpg5kfbFskiLLtcR0Bh9Ey9rH98_jfcafGYCOWpntiGL\" alt=\"How to set up AWS Copilot to build, release and operate containerized applications on ECS and Fargate using a CLI?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Now, create a new directory on your local machine. We now need to download the AWS CLI to the directory. You can open PowerShell and execute:<\/p>\n\n\n\n<p><strong><code>msiexec.exe \/i <\/code><\/strong><a href=\"https:\/\/awscli.amazonaws.com\/AWSCLIV2.msi\"><code><strong>https:\/\/awscli.amazonaws.com\/AWSCLIV2.msi<\/strong><\/code><\/a><\/p>\n\n\n\n<p>To download the installer to your directory or you can navigate to:<\/p>\n\n\n\n<p><a href=\"https:\/\/awscli.amazonaws.com\/AWSCLIV2.msi\">https:\/\/awscli.amazonaws.com\/AWSCLIV2.msi<\/a><\/p>\n\n\n\n<p class=\"has-text-align-justify\">to download the installer directly and move the file in the newly created directory.<\/p>\n\n\n\n<p>Open the installer and follow the steps to install.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/_NcEnY5TfGWww7ybYhh5gcZyxdhCuS_42ICEVkZFRZiP8S_0eiPmYsBlkg_pLEVAV51_PRRxmzJ56GC6w-FrM7Pdqi6fkf8lSLn7D0B8GNL7BaJ_FCMbTfyRBYE31zgj1ttiC22w\" alt=\"\"\/><\/figure>\n\n\n\n<p>A new modal will show up. Click on Next to proceed.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/ZPhjf0g1iHhuforPpgaqc_LpXGCiA8FtTT8xzOlyPSI13IGaWTdJqMmRva359zk25QazhMYIYMB3r0n43HXPZoQH8RST9u4w8upcvRxdizYAIs6SRyx8c5OnUgH7-lTKSGQDZqHr\" alt=\"How to set up AWS Copilot to build, release and operate containerized applications on ECS and Fargate using a CLI?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Check the license agreement checkbox and click on Next.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/kZp-FL3auPnn2pRrwnPx4F8pgTFykh03ReWrCD_HrG1YxU_eNKd3TBUAQLNMG0bVBV-9GEwwfRLsZVwZtRfdJJyQJOEWGGKrtkSee4x6K2Ch2W0rbc9tSIzWYyjeiAkDCE_TZqcc\" alt=\"How to set up AWS Copilot to build, release and operate containerized applications on ECS and Fargate using a CLI?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Select the CLI V2 as shown in the image below and select a location where you need to install the cli. Once done, click on Next.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/BzGc7znw_TYbMR1vArWjBPWn5b0m06967JLME1nwl5yhuPI5gysoV_C-CVi4f6QEGXNJsQhxGZ_vIbHJJQ_Vd-a-en-74e8SvLw-rWPGmWVPYQA2hIecbktmpZIdhkWLL8YTcme1\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Make sure you have the Administrative rights on your local machine since you need those rights to install the CLI. Click on Install.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/8BCSNcHWElKOtYkLJLTXLcUgu9AfOfof55ZvhiaTwJytNMm2YPE6JNdOF5ubmTKQhq5ODhSxRNNW4DD2r2scmp9Ovkvexe6vH3W7Fy9s9akXstzkJ8fQDDEra6kJkNtYwm04rinC\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">The installation might take a few seconds to complete.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/OFYuXQHKbYqOYLBuvL6jp9I2FwZsLfIGGurHDEdEf646RHywju3zF-mewPBA3wHNtmY_N0Nw62fsMYmaz9aNVoi0GILZp76loRyvXTADOBoykwV_bQ7kdNQR30MAx84UP6nhxlHj\" alt=\"How to set up AWS Copilot to build, release and operate containerized applications on ECS and Fargate using a CLI?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Once completed, you will see the modal as shown in the image below. Click on Finish.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/6nD9uwgIdQkD-saC6o05j-Z_jPZob7iKdFEipunR7YGyA1IIcOK-ZmgWpcol5aMH0GvL36a5DOiER82yuEbEoqD771AuQgvsd2ytTbNRPSVNUUlqhh3Gy3L8vGvX2ivdLCgi1As1\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Now, we need to configure AWS with the newly created IAM user in the directory in which you installed the AWS CLI. Open cmd or Git Bash CLI or powershell in that directory and execute the command:<\/p>\n\n\n\n<p><strong><code>aws configure<\/code><\/strong><\/p>\n\n\n\n<p class=\"has-text-align-justify\">Enter in the AWS Access Key ID and AWS Secret Access Key from the csv file you downloaded above and then select the default region name and the default output format for your configuration.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/saA-G6SiJTBe7SBxcsz3G9Z-CWG61lsikf2DltssaslLympkJ_PZUXa3mPGd2itJVakoigT8uqj4XhFbFEjmajjWjaZqvyf-gWPYhQze-FMI0cghKeKkOrh-lq6ocR7eayP8OZvn\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Now, to follow our hands-on tutorial, you will have to clone the repository using the below command:<\/p>\n\n\n\n<p><strong><code>git clone https:\/\/github.com\/workfall\/aws-copilot.git copilot<\/code><\/strong><\/p>\n\n\n\n<p class=\"has-text-align-justify\">Run the above command in cmd or git bash cli or powershell.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/yB9Y5d3kuFIp_TZ9npX1slYCpDhzi3EmIvu3I1ngGVFSi87gC9jrrvVeo3WsbzKmsHDYJzn8BjWnRoRJF5gVI_Rrqz9oQYfhgf7a6VCeOS_NXH27RrvZKMnZmYZfuzyeJccpy_jd\" alt=\"How to set up AWS Copilot to build, release and operate containerized applications on ECS and Fargate using a CLI?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Once done, you will see a new folder created in your directory.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/f1OosnxBPrI7xPnVet5ZsMgjHzDKog7zY4dZq9GFGfbABIbCmq8neLw0rZwNu77_C3Ppqs-zf6TZSC5R7f56hfhQmbyG76JU1l8joBFzOiiJyfXTCYDRTSkGi_Fx4yos6WuGaKGl\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Now, double click to open the newly created folder. You will see the below files in the folder.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/f77szUXyl1gf57F8MQcutHAqKVKb6-ixlFAljs_HV-Vdvvhu8YgZ68YuZhYl1Cca8h5VWVix4lRbTTxlf05h3rcIf9T0JPTAWPAOC0K1AUkYVN0C986LTL9f3-5q6fnwKRAmIghY\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Now, navigate inside the newly created folder.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/ubpu48P_acYE66lI_LIXY-rmwh-_kpKHtcVAg4MwHCn1Z0qViN5JB6eUzAOFF3N6t69pfBRQ971-50dQmEunVcEXuNDEtk5BpMzkXua6UupjQkBTUTxV3fvaIL1OOtpVoJfqdJ0G\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">To follow the further steps, click on the path in the project directory and type powershell. Open powershell CLI and navigate to the project directory.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/4ICiggSh0q7yxS9ZCFtlhWcDhzQsnI_h-yJEdR_yc_8TlBKaBHreLmMUqfChS_zDTbFsgc2UNCSK_h80BKXe4_2v1xmw3x0jxCVwy_Ihlx3rHN32HrofbouL5KIVc4W82IZW8_qD\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">We need to download the copilot CLI as well. Run the below command on your powershell:<\/p>\n\n\n\n<p><strong><code>Invoke-WebRequest -OutFile 'C:\\copilot\\copilot.exe' <\/code><\/strong><a href=\"https:\/\/github.com\/aws\/copilot-cli\/releases\/latest\/download\/copilot-windows.exe\"><code><strong>https:\/\/github.com\/aws\/copilot-cli\/releases\/latest\/download\/copilot-windows.exe<\/strong><\/code><\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/neZ-04CJZq2L1JQzutUdLAjcYjWG5DGw56jL_baw_8ZKI_yNZaOJA85syIkJWc9uEh1VzjiEG_-FvcEQP_wq19sWP_yEih_XQ2mvzEtYfUgr7c2rJjSMFW2fV1RnLIh_OrkLqNH4\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">The above command will then install the copilot command in the provided directory. Move the copilot file inside the directory which consists of your application that is to be deployed.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/oS_Fi_LdlFsF-_SJ2YSEZOsgN0v11asHw_5fCz8VWu41PMUfwUawh7pLc2kMnmtu2maCnzvD_YvKWmyP5TPKTd47u2uvp-csiTi3enDK8MHF-OGQY_EKKiSVhq5EButAva5tkWMO\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Just like shown in the image below, move the copilot command into the project directory.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/yv1ON9593qBmRL4aEp3JIZkJPV4XTaCpGbIf68Hjgi2hgoRdjawzaOMGQhrcuazQblo9Zhlpt0BWCo0DmEn8v7RkrW-NLw6ZdhdlIBLkEWFG3jR4AzMAbqDU0xXcul5We7OTuM-y\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Again in the project directory, type in powershell and open the cli.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/4ICiggSh0q7yxS9ZCFtlhWcDhzQsnI_h-yJEdR_yc_8TlBKaBHreLmMUqfChS_zDTbFsgc2UNCSK_h80BKXe4_2v1xmw3x0jxCVwy_Ihlx3rHN32HrofbouL5KIVc4W82IZW8_qD\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">We need to install Docker to build an image using the Dockerfile for which we need to install chocolatey on windows.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">Execute the below command first on the powershell:<\/p>\n\n\n\n<p><strong><code>Get-ExecutionPolicy<\/code><\/strong><\/p>\n\n\n\n<p class=\"has-text-align-justify\">If the output for the above command returns Restricted, run the below command: <\/p>\n\n\n\n<p><strong><code>Set-ExecutionPolicy AllSigned&nbsp;<\/code><\/strong><\/p>\n\n\n\n<p><strong>[or]&nbsp;<\/strong><\/p>\n\n\n\n<p><strong><code>Set-ExecutionPolicy Bypass -Scope Process<\/code><\/strong><\/p>\n\n\n\n<p class=\"has-text-align-justify\">Once done, now we need to install chocolatey on windows. Run the below command on powershell:&nbsp;<\/p>\n\n\n\n<p><strong><code>Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('<\/code><\/strong><a href=\"https:\/\/chocolatey.org\/install.ps1\"><code><strong>https:\/\/chocolatey.org\/install.ps1<\/strong><\/code><\/a><strong><code>'))<\/code><\/strong><\/p>\n\n\n\n<p class=\"has-text-align-justify\">Running the above command, the installation setup will start.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/MLG8zxEyBqKHuQTlfD1SDX22LlC8yOMcNyL08Dh03R_gLh7kMdz9QC8l1QzBGU2Sdn_XjjCkpYTYFDqAharS8bVdQk-Gg6YehVYPriekrWRGOsqNKzQrXm5OqXvUtoQ5X9rSLYUj\" alt=\"How to set up AWS Copilot to build, release and operate containerized applications on ECS and Fargate using a CLI?\"\/><\/figure>\n\n\n\n<p>Once completed, execute the command:<\/p>\n\n\n\n<p><strong><code>choco install docker-cli<\/code><\/strong><\/p>\n\n\n\n<p class=\"has-text-align-justify\">to install the Docker CLI. After installing docker, verify the installation typing in:<\/p>\n\n\n\n<p><strong><code>docker<\/code><\/strong><\/p>\n\n\n\n<p>in the powershell.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">Now, in the project directory, we have a dockerfile so we need to create a docker image using the dockerfile. On the powershell console or on cmd or on git bash cli, run the command:<\/p>\n\n\n\n<p><strong><code>docker build -t webserver-image:v1 .<\/code><\/strong><\/p>\n\n\n\n<p class=\"has-text-align-justify\">The above command will then create a docker image for your application.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/shrJBDx0r_m_DOUAdeKdNQQPFHtH8dyBXwheaLH39wDaa5NZ4CTPzQdilQMCl2xJ5e1vD5bY33cQAAwVOFpclvtmr8_ydkNady7sBI1ZkPOOVwHsdx0cZmeOTQhbixQeVaIcM1TQ\" alt=\"\"\/><\/figure>\n\n\n\n<p>Now, on the powershell, run:<\/p>\n\n\n\n<p><strong><code>.\\copilot<\/code><\/strong><\/p>\n\n\n\n<p class=\"has-text-align-justify\">This will execute the copilot command you installed above. If you see the screen as shown in the image below, then the installation was successful.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/ziQKFHvz0e0yrp1FSQ3EDZQs-6tmRLk_VKSpABC63H2uBK15UGV_BVXvNuZ0aYZPoEMC5UfZmXcw6tJrkEWKUCQZnhji76YyahMOCxPmYZ6kz9hnt95X3wBqv4QUrQJj-e7ef1cl\" alt=\"How to set up AWS Copilot to build, release and operate containerized applications on ECS and Fargate using a CLI?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Now, let\u2019s initiate the deployment process. To use this copilot command, execute:<\/p>\n\n\n\n<p><strong><code>.\\copilot init<\/code><\/strong><\/p>\n\n\n\n<p class=\"has-text-align-justify\">If an application already exists, you will see the option as shown in the image below. Type in n to create a new application.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/Xl6FLoLjYyly_-v26Vwtgglx4fphaxviqxAd02YLjidFdqV0MfDCJQ81aPQgi5S77J8P9iaSPq0sr_fZmTNN6guQAM6PHJkJMFigEOoOpWpj1ziiolwCquM9yy99833s51ZjH_V2\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Enter a name for your application.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/TkmryaFp6RBrsLSktlg1qMRTOdYwB8IQbg_WYlbOnkQKGxIkdKDJXHOq-gc7RbRnBSqmaRuy6CJ3pUeJYIAOp5oHjOqy6cOA0zbEewiS1AYC4eDP-KXUFHvXzGiM4v7DeOwE4CY8\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">From the dropdown that appears, select the workload type as Load Balanced Web Service. Enter a name for the same.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/KNd-vpbKkuBoQsN0ngDK31RIz2TddbGzwGzjNpyabliuHzxtBIA17bqRRdZ7HPMHJY0ywvOUrP-WTgp-bnNjhwwXDseaWId9NJZ1tCp7P9mU2XKb35PF4syumbjZx8AUztzDufcP\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Enter the path that contains the location of the docker image we created above.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/Kn2hsM1tD_GGfBCWLQk_i7hvLgPBN50ovEDaINixqR7ByY4SNEPYTqq5evCmQ3jPRrixZU4nlMhjAFMoExfK_JUF5JppnDkyqZ-sER_nHwfhJEmOdrFcqcDWn9jqjg-YvpTUcuyp\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Select the port as 80.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/qFi8yyvWb3ryn5IYS-nVxkxpUlpiETnMjugHNvDov8_lPYks33aGwjqgoTbbebVFudb5AUaHkSz5sG_4lVcjQQPqleSIY94ePbGn-Gh6T5yNCzI-J6nAVABqrmw-RIX1gUGdVGNS\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Type in y to deploy a test environment. A manifest.yml file will be created inside your project directory.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/gZiOeaCjRRWHLP70969ukRgXKEG65o8DUW9LGscEQya6g5fZUJfZfwPudCu0uqnBxvVUJYQNG46aUZDBD-7EYr9lpBPZtEkyTn3yaq1wYiZ4SJLAofco57h-ewaN7X83MmsxvX5A\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Once done, you will see a message as shown in the image below.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/R86QXzZARIK5v-ToM5zu1j9rYZuQEIigjY3cYnN5Xg9s5zln3_YcF70NJ5zs4yqexReEHwvPUC6PK75F1PO6ReyPVndaMrcwTdPtQfwQ8V_vaxR467QuE2ED84Ei6mliEe8-e9x3\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Proceeding further, you will see your account getting linked to the service.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/eBwd645xa5C2L7jFijY3yc9leBAmtrRMNaqnppHs4VZiYIY1Ip9SbDLwPf1UtlBBtgexqYDQJGSaXjr_DnoXyrmwf0KoP9QUR9QD_mk9vLLxzUuhf9s_ui4r9jKUcQw3ho30nwnD\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">The below images are the configurations that take place on the backend for the deployment of the application.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/e6WQy9GMORVzyj_XOtNfaonW1VSBCqQ03YMJDj6mgAVYSoj1p0h3UpL-BoSwlmX2CqSPeOCsKbg48zKCxoQyqmHTTcnR4Xxp_JhTLWoyWqNKnYxdSo4dmA2DQ-7GA_Fbhq7VxaME\" alt=\"How to set up AWS Copilot to build, release and operate containerized applications on ECS and Fargate using a CLI?\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/_yFcZjbdHVgMy5AzHm9VK5VNG3kZXh056ht4FctIVo9ItQaJmnuVk-8uRMAQa9_2EtZA-zJd5O_Ci9ggPld48DhpB1t7lNfHfyczoBnH6_uNB9DQ0_Fb-Tekk-sFxcmeZa_FDWfT\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Once deployed, a link will be flashed on your screen. Click on that link to open the deployed application on your browser.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/94d0IK0cphioxP7mDhb66rJI0vjtFeXch6zf43EQK89w5yZ7xreP4hPybw75CClbrK1jVKvLXXMswVeFrfepGQwjuQzMMYSlchpjGFzWLN6CAEuwDz3ZAtlCHfloJ-Cr3pJ32szN\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">To deploy the application with a single command, execute the below command:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ngit clone https:\/\/github.com\/workfall\/aws-copilot.git copilot &amp;&amp; \\ \ncd copilot &amp;&amp;                               \\\ncopilot init --app copilot-handson                      \\\n  --name copilot-api                                 \\\n  --type 'Load Balanced Web Service'         \\\n  --dockerfile '.\/Dockerfile'                \\\n  --port 80                                  \\\n  --deploy\n<\/pre><\/div>\n\n\n<ul><li>For further executions and debugging, you can use the following commands:<\/li><\/ul>\n\n\n\n<p><strong>copilot app ls: <\/strong>to list the deployed applications.<\/p>\n\n\n\n<p><strong>copilot app show: <\/strong>Show information about the environments and services in your application.<\/p>\n\n\n\n<p><strong>copilot env ls: <\/strong>Show information about your environments.<\/p>\n\n\n\n<p><strong>copilot svc show: <\/strong>Show information about the service, including endpoints, capacity and related resources.<\/p>\n\n\n\n<p><strong>copilot svc ls: <\/strong>List of all the services in an application.<\/p>\n\n\n\n<p><strong>copilot svc logs: <\/strong>Show logs of a deployed service.<\/p>\n\n\n\n<p><strong>copilot svc status: <\/strong>copilot svc status<\/p>\n\n\n\n<p><strong>copilot &#8211;help [or] copilot init &#8211;help:<\/strong> List available commands and options.<\/p>\n\n\n\n<h1><strong>Conclusion<\/strong><\/h1>\n\n\n\n<p class=\"has-text-align-justify\">In this blog, we saw how we can make use of AWS Copilot CLI to deploy a containerized web application easily and quickly. We first saw how to create a new user with Administrative Access after which we downloaded the AWS CLI on the local machine in a project directory. We then installed the AWS CLI following the steps of installation and then configured the AWS CLI with the newly created user credentials. We then cloned an application that is added in one of our repositories. After cloning the repository, we downloaded the copilot command in the project directory. After which we installed chocolatey on windows and then using chocolatey we installed docker. Using the docker cli, we created a docker image in the project directory with the help of a Dockerfile in the project directory. We then deployed the application using the copilot CLI and tested the deployed application. We will discuss more use cases of AWS Copilot 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 class=\"has-text-align-justify\">Meanwhile \u2026<\/p>\n\n\n\n<p class=\"has-text-align-justify\"><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\">9<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span> AWS Copilot is a command line interface (CLI) that allows users to launch and manage containerized apps on AWS fast and efficiently. AWS Copilot offers a simple declarative set of commands, as well as examples and guided experiences to assist clients in deploying quickly. Copilot automates each stage of the deployment lifecycle, including pushing to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":240,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[2],"tags":[3,4,52,53,54,55,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 AWS Copilot to build, release and operate containerized applications on ECS and Fargate using a CLI? - The Workfall Blog<\/title>\n<meta name=\"description\" content=\"AWS Copilot offers a simple declarative set of commands, as well as examples and guided experiences to assist clients in deploying quickly.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"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\/\" \/>\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 AWS Copilot to build, release and operate containerized applications on ECS and Fargate using a CLI? - The Workfall Blog\" \/>\n<meta property=\"og:description\" content=\"AWS Copilot offers a simple declarative set of commands, as well as examples and guided experiences to assist clients in deploying quickly.\" \/>\n<meta property=\"og:url\" content=\"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\/\" \/>\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-10-28T16:02:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-22T08:02:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/10\/Amazon_Copilot-1200-x-628-px.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=\"16 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:\/\/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\/#primaryimage\",\"url\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/10\/Amazon_Copilot-1200-x-628-px.png\",\"contentUrl\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/10\/Amazon_Copilot-1200-x-628-px.png\",\"width\":1200,\"height\":628,\"caption\":\"How to deploy a containerized Web Application using AWS Copilot\"},{\"@type\":\"WebPage\",\"@id\":\"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\/#webpage\",\"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\/\",\"name\":\"How to set up AWS Copilot to build, release and operate containerized applications on ECS and Fargate using a CLI? - The Workfall Blog\",\"isPartOf\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"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\/#primaryimage\"},\"datePublished\":\"2021-10-28T16:02:57+00:00\",\"dateModified\":\"2025-08-22T08:02:49+00:00\",\"description\":\"AWS Copilot offers a simple declarative set of commands, as well as examples and guided experiences to assist clients in deploying quickly.\",\"breadcrumb\":{\"@id\":\"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\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"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\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"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\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/learning.workfall.com\/learning\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to set up AWS Copilot to build, release and operate containerized applications on ECS and Fargate using a CLI?\"}]},{\"@type\":\"Article\",\"@id\":\"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\/#article\",\"isPartOf\":{\"@id\":\"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\/#webpage\"},\"author\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/cab8236044692bc5b27606b13167794a\"},\"headline\":\"How to set up AWS Copilot to build, release and operate containerized applications on ECS and Fargate using a CLI?\",\"datePublished\":\"2021-10-28T16:02:57+00:00\",\"dateModified\":\"2025-08-22T08:02:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"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\/#webpage\"},\"wordCount\":1719,\"publisher\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#organization\"},\"image\":{\"@id\":\"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\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/10\/Amazon_Copilot-1200-x-628-px.png\",\"keywords\":[\"AWS\",\"Cloud\",\"containerization\",\"scalable\",\"secure\",\"webdevelopment\",\"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 AWS Copilot to build, release and operate containerized applications on ECS and Fargate using a CLI? - The Workfall Blog","description":"AWS Copilot offers a simple declarative set of commands, as well as examples and guided experiences to assist clients in deploying quickly.","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:\/\/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\/","og_locale":"en_US","og_type":"article","og_title":"How to set up AWS Copilot to build, release and operate containerized applications on ECS and Fargate using a CLI? - The Workfall Blog","og_description":"AWS Copilot offers a simple declarative set of commands, as well as examples and guided experiences to assist clients in deploying quickly.","og_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\/","og_site_name":"The Workfall Blog","article_publisher":"https:\/\/facebook.com\/workfall","article_published_time":"2021-10-28T16:02:57+00:00","article_modified_time":"2025-08-22T08:02:49+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/10\/Amazon_Copilot-1200-x-628-px.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_creator":"@workfall","twitter_site":"@workfall","twitter_misc":{"Written by":"Workfall","Est. reading time":"16 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:\/\/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\/#primaryimage","url":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/10\/Amazon_Copilot-1200-x-628-px.png","contentUrl":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/10\/Amazon_Copilot-1200-x-628-px.png","width":1200,"height":628,"caption":"How to deploy a containerized Web Application using AWS Copilot"},{"@type":"WebPage","@id":"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\/#webpage","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\/","name":"How to set up AWS Copilot to build, release and operate containerized applications on ECS and Fargate using a CLI? - The Workfall Blog","isPartOf":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#website"},"primaryImageOfPage":{"@id":"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\/#primaryimage"},"datePublished":"2021-10-28T16:02:57+00:00","dateModified":"2025-08-22T08:02:49+00:00","description":"AWS Copilot offers a simple declarative set of commands, as well as examples and guided experiences to assist clients in deploying quickly.","breadcrumb":{"@id":"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\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["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\/"]}]},{"@type":"BreadcrumbList","@id":"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\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/learning.workfall.com\/learning\/blog\/"},{"@type":"ListItem","position":2,"name":"How to set up AWS Copilot to build, release and operate containerized applications on ECS and Fargate using a CLI?"}]},{"@type":"Article","@id":"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\/#article","isPartOf":{"@id":"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\/#webpage"},"author":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/cab8236044692bc5b27606b13167794a"},"headline":"How to set up AWS Copilot to build, release and operate containerized applications on ECS and Fargate using a CLI?","datePublished":"2021-10-28T16:02:57+00:00","dateModified":"2025-08-22T08:02:49+00:00","mainEntityOfPage":{"@id":"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\/#webpage"},"wordCount":1719,"publisher":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#organization"},"image":{"@id":"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\/#primaryimage"},"thumbnailUrl":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/10\/Amazon_Copilot-1200-x-628-px.png","keywords":["AWS","Cloud","containerization","scalable","secure","webdevelopment","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\/10\/Amazon_Copilot-1200-x-628-px.png","jetpack-related-posts":[{"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":239,"position":0},"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":[]},{"id":562,"url":"https:\/\/learning.workfall.com\/learning\/blog\/secure-containerized-web-applications-aws-apprunner-part-1\/","url_meta":{"origin":239,"position":1},"title":"How to build and run scalable, secure & containerized Web Applications in minutes using AWS App Runner (Part 1)?","date":"November 10, 2021","format":false,"excerpt":"Developing apps is where you build value, not manage how they're delivered. Rather than wrestling\/bickering infrastructure, why not just write your code and leave the rest to someone else? Over time, cloud providers have made this process progressively easier. AWS may have just made a significant jump for many of\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"AWS AppRunner - Workfall","src":"https:\/\/i1.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/apprunner1.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1494,"url":"https:\/\/learning.workfall.com\/learning\/blog\/amazon-eks-clusters-locally-on-aws-outposts\/","url_meta":{"origin":239,"position":2},"title":"Amazon EKS Clusters Locally on AWS Outposts","date":"October 25, 2022","format":false,"excerpt":"AWS recently announced the availability of Amazon EKS local clusters on AWS Outposts. It means that now users can run the Amazon EKS cluster entirely on Outposts, including the Kubernetes control plane and nodes. To make things easier, AWS now allows you to host your entire Amazon EKS cluster on\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"Amazon EKS Clusters Locally on AWS Outposts","src":"https:\/\/i1.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2022\/10\/Cover-Images_Part2-1-2.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":358,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-build-an-angular-authentication-application-using-aws-amplify\/","url_meta":{"origin":239,"position":3},"title":"How to build an Angular Authentication Application using AWS Amplify?","date":"November 3, 2021","format":false,"excerpt":"In this blog, we will discuss how to build an Angular Application using AWS Amplify and will demonstrate how to build an Authentication Application using AWS Amplify and Angular web framework without configuring the backend manually. In this blog, we will cover: Need for Serverless FrameworksBenefits of Serverless FrameworksPopular Serverless\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"Build an Angular Authentication Application using AWS Amplify","src":"https:\/\/i1.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/amplify.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"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":239,"position":4},"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":834,"url":"https:\/\/learning.workfall.com\/learning\/blog\/create-and-run-web-app-on-ecs-using-aws-fargate\/","url_meta":{"origin":239,"position":5},"title":"Create and run web app on ECS using AWS Fargate","date":"December 28, 2021","format":false,"excerpt":"AWS Fargate is an Amazon ECS solution that allows you to run containers without managing servers or clusters. You no longer need to provision, configure, or scale clusters of virtual machines to run containers with AWS Fargate. This eliminates the need to select server kinds, schedule cluster scaling, or optimize\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"Create and run Web app on ECS using AWS Fargate","src":"https:\/\/i1.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/12\/CoverImages_1200x628px-6.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\/239"}],"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=239"}],"version-history":[{"count":9,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/posts\/239\/revisions"}],"predecessor-version":[{"id":2235,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/posts\/239\/revisions\/2235"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/media\/240"}],"wp:attachment":[{"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/media?parent=239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/categories?post=239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/tags?post=239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}