Skip to main content
  1. 🔰Posts/
  2. 🗂️My Trainings/
  3. AWS Trainings and Certifications/
  4. 🏅AWS Certified Cloud Practitioner/

Security Groups

📚 Part 5 of 25: "AWS Cloud Practitioner" series.

·228 words·2 mins

Amazon Security Groups #

  • Security Groups are the fundamental of network security in AWS
  • They control how traffic is allowed in or out of our EC2 instances
  • Security Groups only contain allow rules (as oppose to NACL or AWS Network Firewall)
  • Security Groups rules can reference an IP or another Security Group
  • Security Groups are acting as a “firewall” for EC2 instances


Security Groups scope #

  • Access to Ports
  • Authorized IP ranges - IPv4 and IPv6
  • Control inbound network
  • Control outbound network

Security Groups principals #

  • Can be attached to multiple instances
  • Locked down to a region / VPC combination
  • Lives “outside” of an EC2 instance - if traffic is blocked, EC2 won’t see it
  • It’s a good practice to maintain one separate SG for SSH access
  • If application is not accessible (time out) then it’s a Security Group issue
  • If application gives a “connection refused” error then it’s an application error or it’s not launched
  • All inbound traffic is blocked by default
  • All outbound traffic is allowed by default

» Sources « #

Full YouTube Rahul’s AWS Course: https://www.youtube.com/playlist?list=PL7iMyoQPMtAN4xl6oWzafqJebfay7K8KP

» Disclaimer « #

This series draws heavily from Stephane Maarek’s Ultimate AWS Certified Cloud Practitioner course on Udemy.

His content was instrumental in helping me pass the certification.

About the instructor
🌐 Website📺 YouTube
💼 LinkedIn𝕏 x.com

ℹ️Shared for educational purposes only, no rights reserved.