Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

AWS Cloud

Chain five security groups

This revision card explains how to chain five security groups in a 3-tier AWS application. Auto Scaling changes instance IP addresses every day, so rules based on IP addresses keep breaking. The chain runs WebAlbSG, WebEc2SG, AppAlbSG, AppEc2SG and DbSG, from the top tier to the bottom. The source of each rule is the previous security group, and port 3306 is never opened to 0.0.0.0/0. For example, Rohan opens DbSG only from AppEc2SG, so the login works but the internet cannot reach the database.

Chain five security groups ASG changes IPs every day — IP rules break. WebAlbSG → WebEc2SG → AppAlbSG → AppEc2SG → DbSG. Source of each rule = previous SG, never 0.0.0.0/0 on 3306. Rohan opens DbSG only from AppEc2SG; login works, internet cannot.
Chain five security groups · Download PNG
Read card text

What this card says

Why do we need it?

ASG changes IPs every day — IP rules break.

ASG

What is it?

WebAlbSG → WebEc2SG → AppAlbSG → AppEc2SG → DbSG.

SG

How to do it

Source of each rule = previous SG, never 0.0.0.0/0 on 3306.

3306

Example

Rohan opens DbSG only from AppEc2SG; login works, internet cannot.

See all AWS revision cards