> For the complete documentation index, see [llms.txt](https://aws-postgresql-docs.beliciarodriguez.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aws-postgresql-docs.beliciarodriguez.com/launching-instance/aws-security-group.md).

# Create Security Group

You need to allow the following network traffic to your PostgreSQL instance.

* SSH: Allows you to access Linux instance through your terminal
* PostgreSQL: Allows incoming requests for PostgreSQL server

To create a security group for your instance in the launch template,

1. Navigate to your AWS EC2 dashboard.
2. Under "Network & Security", select "Security Groups"
3. Select "Create security group"
4. Security group name (Example): PostgreSQL Server Security
5. Description (Example): Allow PostgreSQL
6. VPC: Select VPC for your instance
7. Security group rules (Inbound): Select add rule and add the following:
   1. SSH: For source, choose "Anywhere"
   2. PostgreSQL: For source, choose "Anywhere"
8. You do not need to change the outbound settings.
9. Tags: Skip tags
10. Select "Create Security Group"

Your security group for your PostgreSQL server is ready to be added to your launch template.

{% embed url="<https://youtu.be/tkUcoGJ8Ob0>" %}
