You launch ECS cluster where application is deployed based using the docker image.
-
Goto the AWS Elastic Container Services (ECS) console and click on the Clusters menu in the left and then click on the Create Cluster button.
-
On the next screen, select EC2 Linux + Networking option and click on the Next step button.
-
On the next screen, type in dojocluster as the cluster name. Select On-Demand Instance for the provisioning model. Select t2.large as the instance type. Type in 1 for the number of instances. Select Amazon Linux 2 AMI for the EC2 AMI Id. Keep rest of the configuration to the default.
-
On the same screen, in the networking section, keep the configuration to the default as it will create a new VPC for the cluster and also configure security group taking traffic on port 80 from anywhere.
-
On the same screen, in the Container instance IAM role section, select Create new role for the IAM Role. Keep the rest of the configuration to the default and click on the Create button.
-
The cluster will be launched in no time. You now configure the task definition.