# Infrastructure de petite taille avec Terraform

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

Cet exemple contient du code comme exemple de structuration des configurations Terraform pour une infrastructure de petite taille, où aucune dépendance externe n'est utilisée.

{% hint style="success" %}

* Parfait pour commencer et refactoriser au fur et à mesure
* Parfait pour les petits modules de ressources
* Bon pour les petits modules d'infrastructure linéaires (par exemple, [terraform-aws-atlantis](https://github.com/terraform-aws-modules/terraform-aws-atlantis))
* Bon pour un petit nombre de ressources (moins de 20-30)
  {% endhint %}

{% hint style="warning" %}
Un fichier d'état unique pour toutes les ressources peut ralentir le processus de travail avec Terraform si le nombre de ressources augmente (envisagez d'utiliser un argument -target pour limiter le nombre de ressources)
{% 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/fr/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.
