# Інфраструктура малога памеру з 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/be/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.
