# Малорозмірна структура із Terraform

Джерело: <https://github.com/antonbabenko/terraform-best-practices/tree/master/examples/small-terraform>

Цей приклад містить код як приклад структурування конфігурацій Terraform для невеликої інфраструктури, де не використовуються зовнішні залежності.

{% hint style="success" %}

* Ідеально підходить для початку та реорганізації у процесі
* Ідеально підходить для невеликих ресурсних модулів
* Добре підходить для невеликих і лінійних інфраструктурних модулів (наприклад, [terraform-aws-atlantis](https://github.com/terraform-aws-modules/terraform-aws-atlantis))
* Добре для невеликої кількості ресурсів (менше ніж 20-30)
  {% endhint %}

{% hint style="warning" %}
Єдиний файл стану для всіх ресурсів може уповільнити процес роботи з Terraform, якщо кількість ресурсів зростає (подумайте про використання аргументу`-target` щоб обмежити кількість ресурсів)
{% 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/uk/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.
