Complete the code to specify the launch type for an ECS task using Fargate.
LaunchType=[1]The launch type FARGATE tells ECS to run the container without managing servers.
Complete the code to define the network mode required for Fargate tasks.
"networkMode": "[1]"
Fargate requires the awsvpc network mode to assign each task its own elastic network interface.
Fix the error in the task definition to specify CPU units for a Fargate task.
"cpu": "[1]"
Fargate CPU values must be one of the allowed values like 256, 512, 1024, etc. 256 is the smallest valid CPU unit.
Fill both blanks to define memory and CPU for a Fargate task in the task definition.
"memory": "[1]", "cpu": "[2]"
Memory and CPU must be valid Fargate values. Here, 512 MB memory and 256 CPU units are a valid combination.
Fill all three blanks to configure container port mapping and protocol for a Fargate service.
"portMappings": [{ "containerPort": [1], "hostPort": [2], "protocol": "[3]" }]
For Fargate, hostPort must be 0 to allow dynamic assignment. Container port 80 is common for HTTP. Protocol is usually TCP.