{"id":3741,"date":"2024-05-23T13:10:46","date_gmt":"2024-05-23T12:10:46","guid":{"rendered":"https:\/\/www.easydeploy.io\/blog\/?p=3741"},"modified":"2024-05-24T10:52:49","modified_gmt":"2024-05-24T09:52:49","slug":"how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines","status":"publish","type":"post","link":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/","title":{"rendered":"How to setup CI\/CD pipeline to automate build and deploy ecs through bitbucket pipelines"},"content":{"rendered":"<h1>INTRODUCTION:<\/h1>\n<p>In this article we are going to <strong>setup CI\/CD pipeline to automate build and deploy ecs through bitbucket pipelines <\/strong>Bitbucket Pipelines is a continuous integration and continuous deployment (CI\/CD) service provided by Atlassian&#8217;s Bitbucket, which is a Git repository hosting service. With Bitbucket Pipelines, you can automatically build, test, and deploy your code every time you push updates to your repository. It&#8217;s configured using a YAML file (bitbucket-pipelines.yml) that lives in the root of your repository. This file defines the steps your pipeline will take, such as installing dependencies, running tests, and deploying your application.<\/p>\n<p><span>If you would like to follow a video tutorial please use our YouTube video.<\/span><\/p>\n<div class=\"wpex-responsive-embed\"><iframe loading=\"lazy\" title=\"Hands-on: How to setup CI CD pipeline to automate build and deploy ECS through Bitbucket pipelines\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/e4mlsdaPZCI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<h1>WHAT IS ECS:<\/h1>\n<p><span><strong>ECS<\/strong> is a fully managed container orchestration service provided by <strong>Amazon Web Services<\/strong>. It enables you to run, stop, and manage Docker containers on a cluster of virtual machines that are managed by AWS. <strong>ECS<\/strong> simplifies the process of deploying, managing, and scaling containerized applications.<\/span><\/p>\n<h1>WHAT IS ECR:<\/h1>\n<p><span><strong>ECR<\/strong> is a fully managed Docker container registry service provided by <strong>Amazon Web Services<\/strong>. It allows you to store, manage, and deploy Docker container images securely. <strong>ECR<\/strong> is tightly integrated with other AWS services, particularly <strong>Amazon ECS<\/strong> and <strong>Amazon Elastic Kubernetes Service<\/strong>, making it easy to deploy containerized applications on AWS infrastructure.<\/span><\/p>\n<h1>PREREQUISITES:<\/h1>\n<ul>\n<li>AWS account.<\/li>\n<li>AWS account with ecr and ecs full access.<\/li>\n<li>Basic knowledge about Bitbucket pipelines.<\/li>\n<\/ul>\n<h1>INTENDED AUDIENCE:<\/h1>\n<ul>\n<li>Engineer<\/li>\n<\/ul>\n<h1>BITBUCKET PIPELINE:<\/h1>\n<p>Go to the bitbucket repository where you have the source code of React js &gt; go inside the repository settings.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-164038.png\" alt=\"Repository settings\" width=\"1915\" height=\"973\" class=\"alignnone wp-image-3773 size-full\" title=\"Repository settings\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-164038.png 1915w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-164038-300x152.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-164038-1024x520.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-164038-768x390.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-164038-1536x780.png 1536w\" sizes=\"(max-width: 1915px) 100vw, 1915px\" \/><\/p>\n<p>In pipeline select settings &gt; enable the pipelines.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-164802.png\" alt=\"Enable pipeline\" width=\"1918\" height=\"978\" class=\"alignnone wp-image-3784 size-full\" title=\"Enable pipeline\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-164802.png 1918w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-164802-300x153.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-164802-1024x522.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-164802-768x392.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-164802-1536x783.png 1536w\" sizes=\"(max-width: 1918px) 100vw, 1918px\" \/><\/p>\n<p>Go to the repository variables &gt; add access and secret access key of the user you created.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-165123.png\" alt=\"Repository variables\" width=\"1918\" height=\"972\" class=\"alignnone wp-image-3785 size-full\" title=\"Repository variables\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-165123.png 1918w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-165123-300x152.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-165123-1024x519.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-165123-768x389.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-165123-1536x778.png 1536w\" sizes=\"(max-width: 1918px) 100vw, 1918px\" \/><\/p>\n<p>Go inside Deployments &gt; add region, access and secret access key and variables of ecs and ecr<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-165500.png\" alt=\"Deployments\" width=\"1918\" height=\"970\" class=\"alignnone wp-image-3787 size-full\" title=\"Deployments\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-165500.png 1918w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-165500-300x152.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-165500-1024x518.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-165500-768x388.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-165500-1536x777.png 1536w\" sizes=\"(max-width: 1918px) 100vw, 1918px\" \/><\/p>\n<p>click on pipelines<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-170035.png\" alt=\"pipelines\" width=\"1918\" height=\"970\" class=\"alignnone wp-image-3788 size-full\" title=\"pipelines\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-170035.png 1918w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-170035-300x152.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-170035-1024x518.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-170035-768x388.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-170035-1536x777.png 1536w\" sizes=\"(max-width: 1918px) 100vw, 1918px\" \/><\/p>\n<p>click on run pipeline &gt; select main branch &gt; Run.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-170215.png\" alt=\"Run pipeline\" width=\"1918\" height=\"972\" class=\"alignnone wp-image-3789 size-full\" title=\"Run pipeline\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-170215.png 1918w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-170215-300x152.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-170215-1024x519.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-170215-768x389.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-170215-1536x778.png 1536w\" sizes=\"(max-width: 1918px) 100vw, 1918px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-170458.png\" alt=\"Build and Deploy\" width=\"1918\" height=\"977\" class=\"alignnone wp-image-3791 size-full\" title=\"Build and Deploy\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-170458.png 1918w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-170458-300x153.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-170458-1024x522.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-170458-768x391.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-170458-1536x782.png 1536w\" sizes=\"(max-width: 1918px) 100vw, 1918px\" \/><\/p>\n<p>ECS is successfully build and deployed.<\/p>\n<p>Go inside ECS Console &gt; go inside the cluster &gt; go inside the task and copy the public ip.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-170829.png\" alt=\"copy task public ip\" width=\"1918\" height=\"967\" class=\"alignnone wp-image-3792 size-full\" title=\"Copy task public ip\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-170829.png 1918w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-170829-300x151.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-170829-1024x516.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-170829-768x387.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-170829-1536x774.png 1536w\" sizes=\"(max-width: 1918px) 100vw, 1918px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-171124.png\" alt=\"React js app\" width=\"1919\" height=\"971\" class=\"alignnone wp-image-3794 size-full\" title=\"React js app\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-171124.png 1919w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-171124-300x152.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-171124-1024x518.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-171124-768x389.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-171124-1536x777.png 1536w\" sizes=\"(max-width: 1919px) 100vw, 1919px\" \/><\/p>\n<p>React js is successfully deployed.<\/p>\n<p>Now lets change the source code and see whether the pipeline is auto triggered or not &gt; click commit.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-171355.png\" alt=\"Changing source code\" width=\"1918\" height=\"973\" class=\"alignnone wp-image-3795 size-full\" title=\"Changing source code\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-171355.png 1918w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-171355-300x152.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-171355-1024x519.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-171355-768x390.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-171355-1536x779.png 1536w\" sizes=\"(max-width: 1918px) 100vw, 1918px\" \/><\/p>\n<p>Go to pipelines &gt; you can see that the pipeline got auto triggered and running.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-171747.png\" alt=\"pipeline Auto triggered\" width=\"1918\" height=\"973\" class=\"alignnone wp-image-3796 size-full\" title=\"pipeline Auto triggered\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-171747.png 1918w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-171747-300x152.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-171747-1024x519.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-171747-768x390.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-171747-1536x779.png 1536w\" sizes=\"(max-width: 1918px) 100vw, 1918px\" \/><\/p>\n<p>Go inside the pipeline which is running.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-172002.png\" alt=\"Build and Deployed\" width=\"1918\" height=\"975\" class=\"alignnone wp-image-3797 size-full\" title=\"Build and Deployed\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-172002.png 1918w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-172002-300x153.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-172002-1024x521.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-172002-768x390.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-172002-1536x781.png 1536w\" sizes=\"(max-width: 1918px) 100vw, 1918px\" \/><\/p>\n<p>ECS is successfully build and deployed.<\/p>\n<p>Go inside the ECS console &gt; go inside the cluster &gt; go inside the task and copy the public ip.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-172738.png\" alt=\"Copy task public ip\" width=\"1911\" height=\"966\" class=\"alignnone wp-image-3800 size-full\" title=\"Copy task public ip\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-172738.png 1911w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-172738-300x152.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-172738-1024x518.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-172738-768x388.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-172738-1536x776.png 1536w\" sizes=\"(max-width: 1911px) 100vw, 1911px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-172405-1.png\" alt=\"React js app\" width=\"1919\" height=\"973\" class=\"alignnone wp-image-3801 size-full\" title=\"React js app\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-172405-1.png 1919w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-172405-1-300x152.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-172405-1-1024x519.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-172405-1-768x389.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-172405-1-1536x779.png 1536w\" sizes=\"(max-width: 1919px) 100vw, 1919px\" \/><\/p>\n<p>ECS is successfully deployed.<\/p>\n<p>When we changed the source code, the pipeline got auto triggered and changed the content.<\/p>\n<p>&nbsp;<\/p>\n<h1>DO YOU HAVE ANY QUESTIONS?<\/h1>\n<p>Should you require help in performing the pipeline steps, feel free to contact at our email id<span>\u00a0<\/span><a href=\"mailto:contact@easydeploy.io\">contact@easydeploy.io<\/a><\/p>\n<p>Website \u2013\u00a0<a href=\"https:\/\/www.easydeploy.io\/contact-us\">www.easydeploy.io\/contact-us<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>INTRODUCTION: In this article we are going to setup CI\/CD pipeline to automate build and deploy ecs through bitbucket pipelines Bitbucket Pipelines is a continuous integration and continuous deployment (CI\/CD) service provided by Atlassian&#8217;s Bitbucket, which is a Git repository hosting service. With Bitbucket Pipelines, you can automatically build, test, and deploy your code every [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":3747,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2,441,128,3,26,459,461,1],"tags":[429,433],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to setup CI\/CD pipeline to automate build and deploy ecs through bitbucket pipelines | easydeploy.io<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to setup CI\/CD pipeline to automate build and deploy ecs through bitbucket pipelines | easydeploy.io\" \/>\n<meta property=\"og:description\" content=\"INTRODUCTION: In this article we are going to setup CI\/CD pipeline to automate build and deploy ecs through bitbucket pipelines Bitbucket Pipelines is a continuous integration and continuous deployment (CI\/CD) service provided by Atlassian&#8217;s Bitbucket, which is a Git repository hosting service. With Bitbucket Pipelines, you can automatically build, test, and deploy your code every [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/\" \/>\n<meta property=\"og:site_name\" content=\"easydeploy.io\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-23T12:10:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-24T09:52:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-162605.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1919\" \/>\n\t<meta property=\"og:image:height\" content=\"1079\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Yuvasakthi S\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Yuvasakthi S\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/\"},\"author\":{\"name\":\"Yuvasakthi S\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/eea1a4016a2ed0c49ef592d1d4604d4c\"},\"headline\":\"How to setup CI\/CD pipeline to automate build and deploy ecs through bitbucket pipelines\",\"datePublished\":\"2024-05-23T12:10:46+00:00\",\"dateModified\":\"2024-05-24T09:52:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/\"},\"wordCount\":489,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-162605.png\",\"keywords\":[\"Bitbucket Pipeline\",\"bitbucket pipeline trigger\"],\"articleSection\":[\"Amazon Web Services\",\"Client use cases\",\"Cloud Computing\",\"Cloud Hosting Services\",\"DevOps\",\"IAC\",\"kubernetes\",\"News\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/\",\"name\":\"How to setup CI\/CD pipeline to automate build and deploy ecs through bitbucket pipelines | easydeploy.io\",\"isPartOf\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-162605.png\",\"datePublished\":\"2024-05-23T12:10:46+00:00\",\"dateModified\":\"2024-05-24T09:52:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/#primaryimage\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-162605.png\",\"contentUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-162605.png\",\"width\":1919,\"height\":1079},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.easydeploy.io\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to setup CI\/CD pipeline to automate build and deploy ecs through bitbucket pipelines\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#website\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/\",\"name\":\"easydeploy.io\",\"description\":\"A Cloud Architect Company\",\"publisher\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.easydeploy.io\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#organization\",\"name\":\"EasyDeploy Technologies Pvt Ltd\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png\",\"contentUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png\",\"width\":536,\"height\":100,\"caption\":\"EasyDeploy Technologies Pvt Ltd\"},\"image\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/eea1a4016a2ed0c49ef592d1d4604d4c\",\"name\":\"Yuvasakthi S\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7690a4d989dc75b0356b63c7183932e3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7690a4d989dc75b0356b63c7183932e3?s=96&d=mm&r=g\",\"caption\":\"Yuvasakthi S\"},\"sameAs\":[\"https:\/\/www.easydeploy.io\/\"],\"url\":\"https:\/\/www.easydeploy.io\/blog\/author\/yuvasakthi\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to setup CI\/CD pipeline to automate build and deploy ecs through bitbucket pipelines | easydeploy.io","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/","og_locale":"en_GB","og_type":"article","og_title":"How to setup CI\/CD pipeline to automate build and deploy ecs through bitbucket pipelines | easydeploy.io","og_description":"INTRODUCTION: In this article we are going to setup CI\/CD pipeline to automate build and deploy ecs through bitbucket pipelines Bitbucket Pipelines is a continuous integration and continuous deployment (CI\/CD) service provided by Atlassian&#8217;s Bitbucket, which is a Git repository hosting service. With Bitbucket Pipelines, you can automatically build, test, and deploy your code every [&hellip;]","og_url":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/","og_site_name":"easydeploy.io","article_published_time":"2024-05-23T12:10:46+00:00","article_modified_time":"2024-05-24T09:52:49+00:00","og_image":[{"width":1919,"height":1079,"url":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-162605.png","type":"image\/png"}],"author":"Yuvasakthi S","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Yuvasakthi S","Estimated reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/#article","isPartOf":{"@id":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/"},"author":{"name":"Yuvasakthi S","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/eea1a4016a2ed0c49ef592d1d4604d4c"},"headline":"How to setup CI\/CD pipeline to automate build and deploy ecs through bitbucket pipelines","datePublished":"2024-05-23T12:10:46+00:00","dateModified":"2024-05-24T09:52:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/"},"wordCount":489,"commentCount":0,"publisher":{"@id":"https:\/\/www.easydeploy.io\/blog\/#organization"},"image":{"@id":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/#primaryimage"},"thumbnailUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-162605.png","keywords":["Bitbucket Pipeline","bitbucket pipeline trigger"],"articleSection":["Amazon Web Services","Client use cases","Cloud Computing","Cloud Hosting Services","DevOps","IAC","kubernetes","News"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/","url":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/","name":"How to setup CI\/CD pipeline to automate build and deploy ecs through bitbucket pipelines | easydeploy.io","isPartOf":{"@id":"https:\/\/www.easydeploy.io\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/#primaryimage"},"image":{"@id":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/#primaryimage"},"thumbnailUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-162605.png","datePublished":"2024-05-23T12:10:46+00:00","dateModified":"2024-05-24T09:52:49+00:00","breadcrumb":{"@id":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/#primaryimage","url":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-162605.png","contentUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-162605.png","width":1919,"height":1079},{"@type":"BreadcrumbList","@id":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-ci-cd-pipeline-to-automate-build-and-deploy-ecs-through-bitbucket-pipelines\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.easydeploy.io\/blog\/"},{"@type":"ListItem","position":2,"name":"How to setup CI\/CD pipeline to automate build and deploy ecs through bitbucket pipelines"}]},{"@type":"WebSite","@id":"https:\/\/www.easydeploy.io\/blog\/#website","url":"https:\/\/www.easydeploy.io\/blog\/","name":"easydeploy.io","description":"A Cloud Architect Company","publisher":{"@id":"https:\/\/www.easydeploy.io\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.easydeploy.io\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.easydeploy.io\/blog\/#organization","name":"EasyDeploy Technologies Pvt Ltd","url":"https:\/\/www.easydeploy.io\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png","contentUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png","width":536,"height":100,"caption":"EasyDeploy Technologies Pvt Ltd"},"image":{"@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/eea1a4016a2ed0c49ef592d1d4604d4c","name":"Yuvasakthi S","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7690a4d989dc75b0356b63c7183932e3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7690a4d989dc75b0356b63c7183932e3?s=96&d=mm&r=g","caption":"Yuvasakthi S"},"sameAs":["https:\/\/www.easydeploy.io\/"],"url":"https:\/\/www.easydeploy.io\/blog\/author\/yuvasakthi\/"}]}},"_links":{"self":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts\/3741"}],"collection":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/comments?post=3741"}],"version-history":[{"count":5,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts\/3741\/revisions"}],"predecessor-version":[{"id":3933,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts\/3741\/revisions\/3933"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/media\/3747"}],"wp:attachment":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/media?parent=3741"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/categories?post=3741"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/tags?post=3741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}