...
Follow these steps to launch a container in ECS using an image stored in AWS Elastic Container Registry (ECR):
Download the docker Docker image using the docker pull command from Admin Manager as shown below.
docker pull <image_name>:<tag
>Push the Docker Image to ECR.
Create an ECS Cluster.
In the AWS Management Console, navigate to ECS.
In the Create cluster page, configure a new cluster.
Select AWS Fargate (serverless) under Infrastructure.
Click Create.
Create a new Task definition.
In the AWS Management Console, navigate to ECS Console.
Click Task Definitions and select Create a new task definition with JSON.
Choose the Launch type compatibility as Fargate (serverless).
Configure the task definition:
Task name: Provide a name, for example,
demo-ecs-td
Add a container:
Container name: Specify a meaningful name.
Image: Provide the Docker image URL, for example, snaplogic/snaplex:latest. You can copy the URL from ECR (step 2).
Memory Limits: Set memory and CPU resources as per your use case.
Add the
global.properties
andkeys.properties
in the JSON file of the task definition (as shown below) or upload theslpropz
file to the S3 bucket.
...