# Day 2 : Create Security Group

Welcome back, everyone. On day 2, we will learn how to create a security group in AWS. In this lab, you will learn how to create a security group and define inbound rules for HTTP and SSH access. Let's get started.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1763995017052/63e5c22e-a185-4e74-ba7f-536009e1ebc9.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1763995057742/b51706e3-48d9-409c-a901-9967adc3d0e8.png align="center")

In the EC2 console, you can find security groups in the resources block. There is one default security group, and no other security groups exist.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1763995122409/a47faad6-6762-4d78-bdbc-546973330145.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1763995147169/c3434c2f-d84d-4e40-bb14-762d7fdd77fa.png align="center")

Security group name should be **datacenter-sg** and define **description** what you will use the security group for. Then, you need to allow IPv4 access from anywhere for **HTTP** and **SSH**.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1763995215766/df51c5fc-dbbe-4a81-9a31-70b6dc8f17c8.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1763995251050/aaac1509-8152-4e3c-ac10-668a0926ed8e.png align="center")

After the security group is created, click “Check” to see if your lab is complete.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1763995292688/8ec131ca-3dc8-4522-9f69-0dd9c5b0d7de.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1763995312283/609d7396-f204-49be-b515-d7e9d57213fa.png align="center")

Congratulations you did it. It looks good. This lab was successfully completed without any errors. See you in day 3. If you have any issues please let me know I will be happy to assist you. Stay tuned and learn together. If you find my article useful, please kindly like and share it.
