# Kleinere Infrastruktur mit Terraform

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

Dieses Beispiel enthält Code als Beispiel für die Strukturierung von Terraform-Konfigurationen für eine kleine Infrastruktur, in der keine externen Abhängigkeiten verwendet werden.

{% hint style="success" %}

* Perfekt für den Einstieg und zum Refactoring im laufenden Betrieb
* Perfekt für kleine Ressourcenmodule
* Gut für kleine und lineare Infrastrukturmodule (z.B. [terraform-aws-atlantis](https://github.com/terraform-aws-modules/terraform-aws-atlantis))
* Gut geeignet für eine kleine Anzahl von Ressourcen (weniger als 20-30)
  {% endhint %}

{% hint style="warning" %}
Eine einzige Statusdatei für alle Ressourcen kann den Arbeitsprozess mit Terraform verlangsamen, wenn die Anzahl der Ressourcen wächst (erwägen Sie die Verwendung des Arguments `-target`, um die Anzahl der Ressourcen zu begrenzen)
{% 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/de/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.
