Configuring an ECS task definition for Fargate

You are now ready to start defining your ECS resources, which you will configure to use the AWS Fargate service and leverage the service discovery resources that you created in the previous section.

When configuring ECS task definitions to support Fargate, there are some key considerations that you need to understand:

  • Launch type: An ECS task definition includes a parameter called RequiresCompatibilities, which defines the compatible launch types for the definition. The current launch types include EC2, which refers to ECS tasks launched on traditional ECS clusters, and FARGATE, which refers to ECS tasks launched on Fargate. By default, the RequiresCompatibilities parameter is configured as ...

Get Docker on Amazon Web Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.