Click Next: Register Targets. Click Review. If your values look correct, click Create. Click Close You now need to modify the sgecslabpubliccluster security group from when you created the ECS cluster. When we created the security group was initially created, we add any rules to it. Click on this () or navigate didn’t to the EC2 service and click on Security Groups along the left. Then search for the sgecslabpubliccluster security group. Add a rule to allow HTTP(80) TCP with source 0.0.0.0/0 (anywhere). Add a rule to allow All TCP from sgecslabloadbalancer. This rule references itself and you will see the security group appears when you start in the Source textbox for the All TCP rule. typing “sg-” We now have the following security group setup: 10. Creating the Task Definitions We need to create a service in ECS but before that can be done, the container needs be a part of a . Task Definitions define things like environment variables, the container image you wish to use, and the resources you want to allocate to the service (port, memory, CPU).
Click Next: Register Targets. Click Review. If your values look correct, click Create. Click Close You now need to modify the sgecslabpubliccluster security group from when you created the ECS cluster. When we created the security group was initially created, we didn’t add any rules to it. Click on this () or navigate to the EC2 service and click on Security Groups along the left. Then search for the sgecslabpubliccluster security group. Add a rule to allow HTTP(80) TCP with source 0.0.0.0/0 (anywhere). Add a rule to allow All TCP from sgecslabloadbalancer. This rule references itself and you will see the security group appears when you start typing “sg-” in the Source textbox for the All TCP rule. We now have the following security group setup: 10. Creating the Task Definitions We need to create a service in ECS but before that can be done, the container needs be a part of a . Task Definitions define things like environment variables, the container image you wish to use, and the resources you want to allocate to the service (port, memory, CPU).