Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Follow these steps to launch a container in ECS using an image stored in AWS Elastic Container Registry (ECR):

  1. Download the docker Docker image using the docker pull command from Admin Manager as shown below.
    docker pull <image_name>:<tag>

    download-docker-img.png

     

  2. Push the Docker Image to ECR.

  3. Create an ECS Cluster.

    1. In the AWS Management Console, navigate to ECS.

    2. In the Create cluster page, configure a new cluster.

    3. Select AWS Fargate (serverless) under Infrastructure.

  4. Click Create.

  5. Create an IAM role.

  6. Create a new Task definition.

    1. In the AWS Management Console, navigate to ECS Console.

    2. Click Task Definitions and select Create a new task definition with JSON.

    3. Choose the Launch type compatibility as Fargate (serverless).

    4. 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 and keys.properties in the JSON file of the task definition (as shown below) or upload the slpropz file to the S3 bucket.

...