સિક્યુરિટી ગ્રુપ્સ વર્ચુઅલ ફાયરવોલ્સ છે જે AWS સંસાધનો (જેમ કે EC2 ઇન્સ્ટેન્સ) માટે ইনবাউન્ড અને આउटবાউન્ડ ટ્રાફિક નિયંત્રિત કરે છે — કયા પોર્ટ્સ, પ્રોટોકોલ્સ અને સોર્સ અનુમતિ આપી છે તે વ્યાખ્યાયિત કરે છે. તે AWS નેટવર્ક સિક્યુરિટીનું મૂળ છે.
સિક્યુરિટી ગ્રુપ્સ શું કરે છે
A SECURITY GROUP is a virtual firewall attached to resources (EC2, RDS, etc.):
→ INBOUND rules — what traffic can REACH the resource (port, protocol, source)
→ OUTBOUND rules — what traffic the resource can SEND OUT
→ only ALLOW rules (no explicit deny); everything not allowed is DENIED by default
→ STATEFUL — if inbound is allowed, the response is automatically allowed back
