# Exemples de structure de code

## Structures de code Terraform

{% hint style="info" %}
Ces exemples montrent un fournisseur AWS, mais la majorité des principes présentés dans les exemples peuvent être appliqués à d'autres fournisseurs de cloud public ainsi qu'à d'autres types de fournisseurs (DNS, DB, Monitoring, etc.)
{% endhint %}

| Type                                                                        | Description                                                                                                                                                             | Préparation           |
| --------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- |
| [petit](/fr/examples/terraform/small-size-infrastructure.md)                | Peu de ressources, pas de dépendances externes. Compte AWS unique. Région unique. Environnement unique                                                                  | Oui                   |
| [moyen](/fr/examples/terraform/medium-size-infrastructure.md)               | Plusieurs comptes et environnements AWS, modules d'infrastructure prêts à l'emploi utilisant Terraform.                                                                 | Oui                   |
| [grand](/fr/examples/terraform/large-size-infrastructure-with-terraform.md) | Plusieurs régions, besoin urgent de réduire le copier-coller, modules d'infrastructure personnalisés, utilisation intensive des compositions. Utilisation de Terraform. | TeC(Travail en Cours) |
| Très grand                                                                  | Plusieurs fournisseurs (AWS, GCP, Azure). Déploiements multi-cloud. Utilisation de Terraform.                                                                           | Non                   |

## Structures de code Terragrunt

| Type       | Description                                                                                                                                                              | Préparation |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------- |
| moyen      | Plusieurs comptes et environnements AWS, modules d'infrastructure prêts à l'emploi utilisant Terragrunt.                                                                 | No          |
| grand      | Plusieurs régions, besoin urgent de réduire le copier-coller, modules d'infrastructure personnalisés, utilisation intensive des compositions. Utilisation de Terragrunt. | No          |
| très grand | Plusieurs fournisseurs (AWS, GCP, Azure). Déploiements multi-cloud. Utilisation de Terragrunt.                                                                           | Non         |


---

# 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.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.
