104 lines
1.9 KiB
Markdown
104 lines
1.9 KiB
Markdown
# Shared Terraform Infrastructure
|
|
|
|
**Last Updated**: 2025-01-27
|
|
**Purpose**: Centralized Terraform modules and infrastructure configurations
|
|
|
|
---
|
|
|
|
## Overview
|
|
|
|
This directory contains shared Terraform modules and infrastructure configurations that can be used across multiple projects.
|
|
|
|
---
|
|
|
|
## Structure
|
|
|
|
```
|
|
infrastructure/terraform/
|
|
├── modules/ # Reusable Terraform modules
|
|
│ ├── azure/ # Azure-specific modules
|
|
│ ├── multi-cloud/ # Multi-cloud modules
|
|
│ └── shared/ # Shared utilities
|
|
├── environments/ # Environment-specific configurations
|
|
│ ├── dev/ # Development environment
|
|
│ ├── staging/ # Staging environment
|
|
│ └── prod/ # Production environment
|
|
└── README.md # This file
|
|
```
|
|
|
|
---
|
|
|
|
## Modules (Planned)
|
|
|
|
### Azure Modules
|
|
|
|
#### networking
|
|
- Virtual networks
|
|
- Subnets
|
|
- Network security groups
|
|
- Application Gateway
|
|
|
|
#### kubernetes
|
|
- AKS cluster
|
|
- Node pools
|
|
- Networking integration
|
|
|
|
#### storage
|
|
- Storage accounts
|
|
- Containers
|
|
- File shares
|
|
|
|
#### keyvault
|
|
- Azure Key Vault
|
|
- RBAC configuration
|
|
- Private endpoints
|
|
|
|
#### monitoring
|
|
- Log Analytics
|
|
- Application Insights
|
|
- Alert rules
|
|
|
|
### Multi-Cloud Modules
|
|
|
|
#### azure
|
|
- Azure-specific resources
|
|
|
|
#### aws
|
|
- AWS-specific resources
|
|
|
|
#### gcp
|
|
- GCP-specific resources
|
|
|
|
#### onprem-hci
|
|
- On-premises HCI resources
|
|
|
|
---
|
|
|
|
## Usage
|
|
|
|
### Using Shared Modules
|
|
|
|
```hcl
|
|
module "networking" {
|
|
source = "../../infrastructure/terraform/modules/azure/networking"
|
|
|
|
environment = var.environment
|
|
location = var.location
|
|
# ... module variables
|
|
}
|
|
```
|
|
|
|
---
|
|
|
|
## Migration Status
|
|
|
|
- **Planning Phase**: Module inventory completed
|
|
- **Next Steps**: Begin module consolidation
|
|
- **Target**: Standardized, reusable modules
|
|
|
|
---
|
|
|
|
**Last Updated**: 2025-01-27
|
|
**Status**: Planning Phase
|
|
|