This repository contains a collection of reusable Terraform modules for provisioning common infrastructure components in Azure.
The library includes the following modules:
- vnet: Azure Virtual Network configuration with subnets
- storage-account: Azure Storage Account with various configuration options
- log-analytics: Log Analytics workspace for centralized logging
- aks-cluster: Azure Kubernetes Service cluster with various configuration options
- app-service: Azure App Service for hosting web applications
Each module can be used independently or in combination with others. See the examples/
directory for sample implementations.
Basic usage example:
module "vnet" {
source = "github.com/organization/iac-module-library-azure//modules/vnet"
resource_group_name = "my-resource-group"
vnet_name = "my-vnet"
address_space = ["10.0.0.0/16"]
location = "westeurope"
tags = {
Environment = "Production"
}
}
- Clone this repository
- Navigate to the example directory of choice
- Initialize Terraform:
terraform init
- Apply the configuration:
terraform apply
Contributions are welcome! Please read our contributing guidelines before submitting pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.