AWS Fargate With ECS
This is a quick walkthrough that was done using Linux Academy.
Steps to complete
- Log into the console
- Head to ECS
- Head the
Task Definitions
- Select
Fargate
and go next - We don't need a
Task Role
since there are no AWS network tasks - Since we are just creating an NGINX container, set the allocation for CPU and memory to the lowest
- Add a container and set it to be
nginx:latest
- Memory limit 300mb
- Set
Port mappings
to 80 for Nginx - Click add, scroll to the bottom and head to the next page
- After creating, we can now run our task (from the drop down)
- Launch type, select
Fargate
- Select the VPC, Subnets etc
- Auto-enable Fargate IP
- Run the task
- Once task it running, click the task and copy the IP
Bingo! Success in creating a task using Fargate.