# Create a Security Group

## Instruction

### 1. สร้าง Security Group

คลิกที่ปุ่ม  + "Security Group" แล้วเลือก Customize

![Security Groups Page](/files/DPhHPMByijUEu7tAEDWE)

### 2. กรอกข้อมูลสำหรับการสร้าง Security Group ใหม่

![Create Security Group](/files/qkHidf00N2XXVegAKPSt)

**Name** : ชื่อสำหรับ Security Group

\*ตั้งได้เฉพาะตัวอักษรภาษาอังกฤษ(A-Z, a-z), ตัวเลข(0-9), hyphen(-) หรือ underscore(\_)

\*ความยาวอยู่ระหว่าง 4 - 20 ตัวอักษร

### 3. จะได้ Security Group ใหม่ขึ้นมาดังรูป

![](/files/8k9XRJHy6IHXlmBXgHDE)

### 4. Add Rule

สามารถเลือก add rule ได้ทั้ง traffic ฝั่ง ingress และ egress

![Add Rule](/files/yYdT3OFj2Xvm07y39ovG)

### 5. คลิกที่ Add Rule

หลังจากคลิกที่ add rule จะเจอหน้าในการเพิ่ม rule โดยจะมี 2 tab คือ express rules และ custom rule

โดยใน express rules จะมี template ของ rule ที่ถูกตั้งค่าไว้แล้ว สามารถเลือก add ได้เลย

และใน custom rule จะสามารถเลือกตั้งค่า rule ตามที่ต้องการได้

{% tabs %}
{% tab title="Express Rules" %}
![Express Rules](/files/yzY7yWIPl7W31Ts5S52v)
{% endtab %}

{% tab title="Custom Rules" %}
![Custom Rules](/files/4Iy7zrs9T6x99cVHMLl7)
{% endtab %}
{% endtabs %}

### 6. เมื่อทำการ Add Rule เสร็จ

จะมี Rule ใหม่ขึ้นมาดังภาพ(ทดลอง Add All TCP Rule)

![](/files/RTiQKlMUdKiIMvzRntPk)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-epc.gitbook.io/ncs-documents/networking/security-group/create-a-security-group.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
