

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
click for more info
Not enough gems
Cost: 6 gems
1: VPC and Networking Setup
incomplete
2: Why ECS?
incomplete
3: Elastic Container Registry
incomplete
4: ECR Repo
incomplete
5: ECS Clusters
incomplete
6: ECS Permissions
incomplete
7: ECS Task Definitions
incomplete
8: ECS Security Groups
incomplete
9: Application Load Balancer
incomplete
10: Target Groups
incomplete
11: CloudWatch Log Groups
incomplete
12: ECS Services
incomplete
13: Cleanup
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
Now we need Security Groups to control who can reach our ECS tasks. We'll place our tasks in public subnets; only the load balancer should be able reach them. Security groups let us define exactly which traffic is allowed. We'll need two of them:
Security groups referencing other security groups is one of those AWS features that seems obvious once you see it, but it's easy to miss. It's way better than managing IP addresses manually, especially when things change.
It also communicates the "intent" of the rule which makes it much easier understand as complexity grows.
Create security groups patientping-external and patientping-internal in your patientping VPC and configure traffic between them.
Cost check: Security groups are free. You only pay for the resources that use them.
Run and submit the tests to verify your security group is configured correctly.