# Infraestrutura pequena com o Terraform

Fonte: <https://github.com/antonbabenko/terraform-best-practices/tree/master/examples/small-terraform>

Este exemplo contém código como um exemplo de estruturação de configurações do Terraform para uma infraestrutura de pequeno porte, onde nenhuma dependência externa é utilizada.

{% hint style="success" %}

* Perfeito para começar e refatorar à medida que avança
* Perfeito para pequenos módulos de recursos
* Bom para módulos de infraestrutura pequenos e lineares (ex, [terraform-aws-atlantis](https://github.com/terraform-aws-modules/terraform-aws-atlantis))
* Bom para um número pequeno de recursos (menos de 20-30)
  {% endhint %}

{% hint style="warning" %}
Um arquivo de estado único para todos os recursos pode tornar o processo de trabalho com o Terraform lento, se o número de recursos estiver crescendo (considere utilizar o argumento [`-target`](https://learn.hashicorp.com/tutorials/terraform/resource-targeting?in=terraform/cli) para limitar o número de recursos)
{% endhint %}


---

# 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://www.terraform-best-practices.com/ptbr/examples/terraform/small-size-infrastructure.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.
