Fargate
- You can create an empty ECS cluster (no EC2s provisioned) and then launch Tasks as Fargate
- You no longer have to provision, configure, and scale clusters of EC2 instances to run containers
- You are charged for at least one minute and after its by the second.
- You pay based on duration and consumption
Configuring Fargate Tasks
-
In your Fargate Task Definition you define the memory and vCPU.
-
Your will then add your containers and allocate the memory and vCPU for each
-
When you run the Task you can choose what VPC and subnet it will run in
-
Appy a Security Group to a Task
-
Apply and IAM role to the Task
- You can apply SG and IAM role for both ECS and Fargate Tasks and Services
[[fargate]]