• Task
  • Version · 6.0
  • Deliver

Create an AWS Task definition to run Liquibase commands

Last updated: August 11, 2026

Before you begin

Procedure

1

Navigate to your Amazon Elastic Container Service console.

a-ecs
2

Select Task definitions from the left side navigation.

task-def
3

Click the Create a new task definition button

Task definition example
loading
4

Ensure that the Launch type selected is AWS Fargate.

fargate-launch-type
5

Set both the Task role and execution role to ecsTaskExecutionRole. This role is created by default when we create a ECS Fargate cluster.

task-role
6

Add another Policy to the ecsTaskExecutionRole to include access to license-manager.

loading
7

This is the container you may want to extend the Docker container to use SQL, mySQL, NoSQL, or any other type of extension.

8

Create an AWS Task Definition to Run Liquibase Commands

If you work with MySQL DB, add INSTALL_MYSQL with a value of true
9

Click the Create button at the bottom of the page to complete mounting the files in Fargate.

Result

Next step