# Esempi di strutturazione del codice

## Struttura del codice Terraform&#x20;

{% hint style="info" %}
Questi esempi sono realizzati con il provider AWS ma la maggior parte dei principi mostrati possono essere applicati anche ad altri provider cloud e non (DNS, DB, Monitoring, ecc)
{% endhint %}

| Tipo                                                                         | Descrizione                                                                                                                                                         | Disponibilità          |
| ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- |
| [piccolo](/it/examples/terraform/small-size-infrastructure.md)               | Poche risorse, nessuna dipendenza esterna.  Un solo AWS account. Una sola Regione. Un solo ambiente.                                                                | Si                     |
| [media](/it/examples/terraform/medium-size-infrastructure.md)                | Più account AWS e ambienti, moduli standard di infrastruttura Terraform.                                                                                            | Si                     |
| [grande](/it/examples/terraform/large-size-infrastructure-with-terraform.md) | Molti accounts AWS, molte regioni, importanza di ridurre il copia-incolla, moduli di infrastruttura personalizzati , pesante uso di composizioni. Uso di Terraform. | Non ancora disponibile |
| molto-grande                                                                 | Più providers (AWS, GCP, Azure). Deploy Multi-cloud. Uso di Terraform.                                                                                              | No                     |

## Terragrunt code structures

| Tipo       | Descrizione                                                                                                                                                          | Disponibilità |
| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- |
| medio      | Diversi account AWS e ambienti, moduli di infrastruttura standard, pattern di composizione usando Terragrunt.                                                        | No            |
| large      | Molti accounts AWS, molte regioni, importanza di ridurre il copia-incolla, moduli di infrastruttura personalizzati , pesante uso di composizioni. Uso di Terragrunt. | No            |
| very-large | Più providers (AWS, GCP, Azure). Deploy Multi-cloud. Uso di  Terragrunt.                                                                                             | No            |


---

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