Create ECS Cluster

Create role for ECS task

  1. Access IAM service, choose Roles on left panel, then choose Create role.

FCJ_ws2

  1. Continue:
  • For Trusted entity type, choose AWS Service.
  • For Use case, choose Elastic Container Service, then choose Elastic Container Service Task.
  • Click Next.

FCJ_ws2

  1. Continue:
  • For Permissions policies, input AmazonECSTaskExecutionRolePolicy to find and choose it.
  • Click Next.

FCJ_ws2

  1. Input name ecsTaskExecutionRole.

FCJ_ws2

  1. Check policies again and click Create role.

FCJ_ws2

  1. Cofirm role created successfully.

FCJ_ws2

Create CodeDeploy Role for ECS

  1. Continue, click Create role.

FCJ_ws2

  1. Continue:
  • For Trusted entity type, choose AWS Service.
  • For Use case, choose CodeDeploy, then choose CodeDeploy - ECS.
  • Click Next.

FCJ_ws2

  1. Confirm policy AWSCodeDeployRoleForECS. Click Next.

FCJ_ws2

  1. Type in CodeDeployServiceRole for name. Check everything again and click Create role (end of page).

FCJ_ws2

  1. Cofirm role created successfully.

FCJ_ws2

Create ECS Cluster

  1. Access the AWS Elastic Container Service service, then choose Create cluster.

FCJ_ws2

  1. In the Cluster name field, enter FCJ_Cluster.

FCJ_ws2

  1. Confirm that the cluster has been created successfully.

FCJ_ws2