# Mała infrastruktura z Terraform

Źródło: <https://github.com/antonbabenko/terraform-best-practices/tree/master/examples/small-terraform>

Ten przykład zawiera kod dla strukturyzacji konfiguracji Terraform dla małego rozmiaru infrastruktury, w której nie są używane zależności zewnętrzne.

{% hint style="success" %}

* Idealny na początek i gdy refaktoryzacja na bieżąco jest możliwa
* Idealny do modułów z małymi zasobami
* Dobry dla małych i liniowych modułów infrastruktury (np. [terraform-aws-atlantis](https://github.com/terraform-aws-modules/terraform-aws-atlantis))
* Dobry dla małej liczby zasobów (mniej niż 20-30)
  {% endhint %}

{% hint style="warning" %}
Plik jednego stanu dla wszystkich zasobów może spowolnić proces pracy z Terraform. Jeśli liczba zasobów rośnie, rozważ użycie argumentu `-target`, aby je ograniczyć.
{% 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/pl/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.
