Deploy to AWS ECS

The AWS ECS action lets you easily run and manage Docker containers by registering a task definition on the selected cluster of EC2 instances with on a single push to branch.

Image loading...Example pipeline with deployment to an ECS serverExample pipeline with deployment to an ECS server

Tip
If you are new to Buddy, check out our workflow guides that will tell you how to build, test and deploy your type of application.

Configure pipeline in Buddy

  1. Create a new project, select your Git provider and choose the repository with your project:

Image loading...Creating a new projectCreating a new project

  1. Add a new pipeline and configure the details: name, trigger mode, and branch from which you want to deploy.

Image loading...Adding a new pipelineAdding a new pipeline

Configure AWS ECS deployment

Warning
Before you add the actions, make sure that your AWS user has proper permissions assigned and full programmatic access to AWS.
  1. Look up and select the AWS ECS action from the list:

Image loading...AWS actionsAWS actions

  1. The action has three configuration tabs:
  • Deploy – here you select the AWS integration, region, cluster, service and the task definition to register
  • Variables – here you can view your AWS integration variables, and create your own if required
  • Conditions – here you configure the trigger conditions for which the action will run
  • Options – here you define the action's name and behavior on failure and timeout

Image loading...AWS ECS action configurationAWS ECS action configuration

  1. When ready, click Add this action to finish configuration.
Success
Congratulations – you have just automated your deployment to AWS ECS! 🥳
Last update:
Sep 24, 2024