|
| 1 | +# Terraform Template - Azure Batch |
| 2 | + |
| 3 | +Costa Rica |
| 4 | + |
| 5 | +[](https://github.com/) |
| 6 | +[brown9804](https://github.com/brown9804) |
| 7 | + |
| 8 | +Last updated: 2025-06-01 |
| 9 | + |
| 10 | +---------- |
| 11 | + |
| 12 | +> This template contains Terraform configurations to create and manage an Azure Batch environment with dependencies on a Resource Group and Storage Account. Below is a description of the files and the variables used in this template. |
| 13 | +
|
| 14 | +> [!NOTE] |
| 15 | +> The Azure Batch environment depends on the Resource Group and Storage Account. Terraform ensures that these resources are created before the Batch environment by using the `depends_on` argument in the configuration. |
| 16 | +
|
| 17 | +<p align="center"> |
| 18 | + <img width="700" alt="image" src="https://github.com/user-attachments/assets/f3079753-80f4-405e-9791-380050e5121a"> |
| 19 | +</p> |
| 20 | + |
| 21 | +## File Descriptions |
| 22 | + |
| 23 | +- **main.tf**: Contains the main configuration for creating the Azure Batch environment and the resources it depends on. |
| 24 | +- **variables.tf**: Defines the input variables used in the Terraform configuration. |
| 25 | +- **provider.tf**: Configures the Azure provider to interact with Azure resources. |
| 26 | +- **terraform.tfvars**: Provides default values for the variables defined in `variables.tf`. |
| 27 | +- **outputs.tf**: Defines the outputs of the Terraform configuration, such as the Batch account name, pool names, and associated Resource Group. |
| 28 | + |
| 29 | +## Variables |
| 30 | + |
| 31 | +Below is a list of variables used in this template, their expected values, types, and examples: |
| 32 | + |
| 33 | +| Variable Name | Description | Type | Example Value | |
| 34 | +|---------------------------|--------------------------------------------------|--------|-----------------------| |
| 35 | +| `resource_group_name` | The name of the Azure Resource Group to associate the Batch environment with. | string | `"my-resource-group"` | |
| 36 | +| `location` | The Azure region where the Resource Group will be created. | string | `"East US"` | |
| 37 | +| `storage_account_name` | The name of the Azure Storage Account to create. | string | `"mystorageaccount"` | |
| 38 | +| `batch_account_name` | The name of the Azure Batch Account to create. | string | `"mybatchaccount"` | |
| 39 | +| `tags` | A map of tags to assign to the resources. | map | `{ "env": "dev" }` | |
| 40 | + |
| 41 | +<div align="center"> |
| 42 | + <h3 style="color: #4CAF50;">Total Visitors</h3> |
| 43 | + <img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/> |
| 44 | +</div> |
0 commit comments