# Resource Context

The **resource context** in MechCloud will be equivalent to a Kubernetes namespace, serving as a logical container for a group of resources that should be managed as a single unit. It will allow you to:

* **Group Related Resources**: Resources within the same resource context (e.g., app1-prod) will be treated as a cohesive set, isolating them from other resources in the same AWS account.
* **Simplify Multi-Environment Management**: Define separate contexts for different environments of an application. For example, for an application named app1, you might use:
  * `app1-prod` for the production environment.
  * `app1-dev` for the development environment.
  * `app1-stage` for the staging environment.

When using MechCloud SaaS, you will select the resource context from a dropdown, and only resources within that context will be included in the actual state and plan. This will ensure focused and organized infrastructure management across multiple environments.

### Creating a resource context

Follow these steps to create a resource context in MechCloud -&#x20;

* Log on to [MechCloud](https://portal-preview.mechcloud.io) and navigate to **Infrastructure** -> **Resource Contexts**.
* Select a team.
* Click on **New Resource Context** button.
* Enter a name for the resource context.
* Click on **Save** button to create the resource context.


---

# 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.mechcloud.io/cloud-computing/stateless-iac/resource-context.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.
