Tạo ECS task definition

Tạo CES task definition

  1. Trong ProductsServiceStack contructor khởi tạo đối tượng FargateTaskDefinition
   FargateTaskDefinition fargateTaskDefinition = new FargateTaskDefinition(this, "TaskDefinition",
                FargateTaskDefinitionProps.builder()
                        .build());

Architect

  1. Tạo tên group của tất cả các task definition bạn đã tạo
   .family("products-service")

Architect

  1. Tiếp theo chúng ta định nghĩa số lượng cpu là 512 và memory là 1024
   .cpu(512)
   .memoryLimitMiB(1024)

Architect