From the course: Docker on AWS
Unlock the full course today
Join today to access over 25,000 courses taught by industry experts.
Modifying ECS EC2 security groups
From the course: Docker on AWS
Modifying ECS EC2 security groups
- [Instructor] In order to manipulate security groups, we have two options. One option is to manipulate security groups at the systems level, but we can also manipulate security groups at the task level, and this is because we're using the AWS VPC network model. So the simplest way to do this is to actually select our cluster, and currently we're using the fargate cluster for the most part in this particular class, we'll modify a security group of a task running in this particular cluster. Now, our tasks are all being launched by the service themselves, and so they are sharing, and because they're service-based tasks, they're sharing the same security group. So we're going to actually create a new task, and we're going to use our host name resource, again it's a fargate launch type, so we're going to launch in the fargate cluster, we're going to select our VPC, and attach our subnets, and then here where we have security…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.