Let’s create an AWS ECS Task Definition - a JSON file that defines the configuration of a task in Amazon Elastic Container Service (ECS). It acts like a blueprint that tells AWS ECS how to run a Docker container, including information about the container image, resources, environment variables, networking, logging, and IAM roles.
1. Go to AWS ECS console.
2. In the left sidebar,
3. In the Task definition configuration section, enter awsome-books
for Task definition family.
4. In the Infrastructure requirements section,
5. In the Container - 1 section,
awsome-books
.8080
.6. Scroll down to the bottom, click Create.