> For the complete documentation index, see [llms.txt](https://docs.nuvens.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nuvens.cloud/install/alternate-deployment-options/deployment-from-shared-ami/security-group.md).

# Security Group

A Security Group for the EC2 instance hosting WorkSpaces Manager must be created prior to deployment so it can be associated with the instance. While the roles and policies were set up in the previous section, it's important to ensure that a Security Group is also configured.

{% hint style="warning" %}
If using the [Git Repo for Terraform](https://gitlab.com/nuvens-public/iam-role-terraform) from Nuvens' public site, the **Security Group**, **Policies**, **Role**, and **EC2 Instance Profile** will be created together as part of the automated deployment process.
{% endhint %}

Ensure that the AWS Security Group complies with your organization's internal governance policies. At a minimum, the Security Group should allow the following **inbound** access:

* **TCP/80 (HTTP)**
* **TCP/443 (HTTPS)**
* **TCP/1433 (MS-SQL)**
* **TCP/3389 (RDP)**

For **outbound** access, configure the Security Group to allow:

* **All traffic** (all ports and protocols) to **0.0.0.0/0**.

We recommend naming this Security Group according to your organization's internal naming convention. If no specific naming convention is required, you can use **"SG-WorkSpacesManager"** as a suggested name.

If you prefer to create the Security Group individually using Terraform, you can refer to the provided **.tf file** for guidance. This file contains the necessary configurations to define the Security Group and its rules.

{% embed url="<https://gitlab.com/nuvens-public/iam-role-terraform/-/blob/main/security.tf?ref_type=heads>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.nuvens.cloud/install/alternate-deployment-options/deployment-from-shared-ami/security-group.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
