# ECS Fargate Steps
## Starting... Make sure you have your docker image on ECR

## Create a cluster
- go to the ECS via services

- click create cluster

- choose the network only template and click `next step`

- choose an awesome name for your cluster then click `Create`

- Now click `view cluster`

## Create a Task and run it
- click on the `Task Definitions` on the left

- click `create new task definition`

- select fargate and click`next step`

- give your task an awesome name and select a role

- select a task size and `add a container`

- give your container an awesome name
- set the image of your container from your ecr uri
- set your port mapping for your container exposed port
- and click `add`

- scroll down and click `create`

- click on `view task defenition`

- click on `Actions` -> `Run Task`

- chose fargate
- select the cluster vpc
- add a subnet to the the security group

- click on `edit` for the security group

- click on `add role`

- choose `custom tcp`
- add the port that you exposed in your container
- click `save`

- click run task and wait for it to spin up


## Get the ip of the task
- click on the link in the task column

- get the public ip of your task

## go to the public ip at the specified port that you exposed on your container
