With a container target defined in our repository, we can define a task definition, which contains the necessary metadata to run our container, such as port mappings, reserved CPU, and memory allocations:
- Navigate to Elastic Container Service
- Click on Task Definitions | Create new Task Definition
- Select Fargate launch type compatibility
- Enter Task Definition Name as lemon-mart-task
- Select Task role none (you can add one later to enable access other AWS services)
- Enter Task Size 0.5 GB
- Enter Task CPU 0.25 CPU
- Click on Add Container:
- Enter Container name as lemon-mart
- For Image, paste the image repo URI from earlier, but append the :latest tag to it so that it always pulls the latest image in the repository, such ...