|
| 1 | +# Terraform Template - Azure ExpressRoute |
| 2 | + |
| 3 | +Costa Rica |
| 4 | + |
| 5 | +[](https://github.com/) |
| 6 | +[brown9804](https://github.com/brown9804) |
| 7 | + |
| 8 | +Last updated: 2025-06-12 |
| 9 | + |
| 10 | +---------- |
| 11 | + |
| 12 | +> This template contains Terraform configurations to create and manage an Azure ExpressRoute circuit, including provider, peering location, and bandwidth settings. |
| 13 | +
|
| 14 | +> [!NOTE] |
| 15 | +> ExpressRoute circuits require coordination with your chosen service provider. |
| 16 | +
|
| 17 | +<p align="center"> |
| 18 | + <img width="700" alt="image" src="https://github.com/user-attachments/assets/7001446c-e5cc-4a16-b443-5a5689f31f68"> |
| 19 | +</p> |
| 20 | + |
| 21 | +## File Descriptions |
| 22 | + |
| 23 | +- **main.tf**: Contains the main configuration for creating the Azure ExpressRoute circuit. |
| 24 | +- **variables.tf**: Defines the input variables used in the Terraform configuration. |
| 25 | +- **terraform.tfvars**: Provides default values for the variables defined in `variables.tf`. |
| 26 | +- **outputs.tf**: Defines the outputs such as ExpressRoute circuit ID and service key. |
| 27 | + |
| 28 | +## Variables |
| 29 | + |
| 30 | +| Variable Name | Description | Type | Example Value | |
| 31 | +|------------------------ |--------------------------------------------------|--------|-----------------------------| |
| 32 | +| `subscription_id` | The Azure subscription ID | string | `"00000000-0000-0000-0000-000000000000"` | |
| 33 | +| `resource_group_name` | The name of the resource group | string | `"my-expressroute-rg"` | |
| 34 | +| `location` | The Azure region to deploy resources | string | `"eastus"` | |
| 35 | +| `expressroute_name` | The name of the ExpressRoute circuit | string | `"my-expressroute"` | |
| 36 | +| `service_provider_name` | The name of the ExpressRoute service provider | string | `"Equinix"` | |
| 37 | +| `peering_location` | The peering location for the ExpressRoute circuit| string | `"Silicon Valley"` | |
| 38 | +| `bandwidth_in_mbps` | The bandwidth in Mbps for the circuit | number | `200` | |
| 39 | +| `sku_tier` | The SKU tier for ExpressRoute | string | `"Standard"` | |
| 40 | +| `sku_family` | The SKU family for ExpressRoute | string | `"MeteredData"` | |
| 41 | + |
| 42 | +## Usage |
| 43 | + |
| 44 | +1. Clone the repository and navigate to the expressroute directory. |
| 45 | +2. Update the `terraform.tfvars` file with your values. |
| 46 | +3. Initialize and apply the Terraform configuration: |
| 47 | + |
| 48 | +```bash |
| 49 | +terraform init |
| 50 | +terraform plan |
| 51 | +terraform apply |
| 52 | +``` |
| 53 | + |
| 54 | +## Outputs |
| 55 | + |
| 56 | +| Output Name | Description | |
| 57 | +|----------------------------|---------------------------------------------| |
| 58 | +| `expressroute_id` | The ID of the ExpressRoute circuit | |
| 59 | +| `expressroute_service_key` | The service key of the ExpressRoute circuit | |
| 60 | + |
| 61 | +<div align="center"> |
| 62 | + <h3 style="color: #4CAF50;">Total Visitors</h3> |
| 63 | + <img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/> |
| 64 | +</div> |
0 commit comments