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 EC2, meaning that you must explicitly configure this parameter if you want to use Fargate.
- Network mode: Fargate only supports...