# Use modules

To use a module in your Terraform configuration in Brainboard, you can use the black box module and add it to your schema by dragging and dropping it into the design.

You also need to specify the values for the variables defined in the module.

As an example, we will use a module for naming conventions. This module helps you to keep consistency on your resources names for Terraform. The goal of this module is to easily provide a name for each resource that requires a name in Terraform following the best practices.

1. Drag and drop the module into your schema and open the Resource Configuration panel of the module.

   ![Use module](/files/zOFf0istCRMGZthkZ8zQ)

   The Resource Configuration panel will have all the information for the input and the attributes that the module needs to be used properly as designed.\
   In the Resource Configuration panel, you can also specify the version that you want to use for this module and extra attributes.
2. After you finish with this step, the module is ready to be used in your terraform configuration.
3. Open a resource and use the module to generate the name of the resource. The syntax is *module.module\_name.resource\_type.\[name, name\_unique]*

   ![Call module](/files/4DiIv5hF0BQgAmpk5oo0)


---

# 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.brainboard.co/data/terraform-opentofu/terraform-modules/use-modules.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.
