Step-by-step guide for how to create and configure Security Groups.
- Go to AWS Management Console.
- Sign in to your credential.
- Navigate to EC2 under the Commute.
- click Launch Instance.
- Create a Name tag for EC2 Instance.
- Choose an Amazon Machine Image(AMI).
- Select an Instance Type.
- Create or Select already existing Key Pair.
Security group defines who can access your instance.
-
Create New Security group
• Enter name for Security group.
• Write description for Security Group.
-
Add Inbound Rules(traffic coming to the instance)
•SSH(TCP 22) - To connect via SSH.
•HTTP(TCP 80) - To allow web traffic if hosting a website.
•HTTPS(TCP 443) - To allow Secure web traffic.
-
Add Outbound Rules(traffic leaving the instance)
•By default all outbound traffic is allowed, you can leave it as is.
- You can configure storage for your instance as you need and by default 8GB is selected.
- Review all settings: Instance Type, AMI, Security Group, etc.
- Check Acknowledgement box and click launch instances.
- Go to Instances in EC2 dashboard.
- Select the instance and click Connect.
- And Follow the SSH instructions.