https://github.com/libre-devops/terraform-azure-azdo-pipeline-templates-powershell-wrapper
A repo containining pipeline templates for Azure DevOps
https://github.com/libre-devops/terraform-azure-azdo-pipeline-templates-powershell-wrapper
Last synced: 5 months ago
JSON representation
A repo containining pipeline templates for Azure DevOps
- Host: GitHub
- URL: https://github.com/libre-devops/terraform-azure-azdo-pipeline-templates-powershell-wrapper
- Owner: libre-devops
- License: mit
- Created: 2025-05-21T22:04:09.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-03T22:31:32.000Z (11 months ago)
- Last Synced: 2025-07-17T05:06:17.394Z (11 months ago)
- Language: PowerShell
- Size: 259 KB
- Stars: 0
- Watchers: 0
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Libre DevOps โ Terraform Azure DevOps Pipeline Templates
A curated collection of reusable Azure DevOps pipeline templates designed to streamline Terraform-based infrastructure deployments on Azure.
---
## ๐ฆ Repository Structure
- `.azuredevops/` โ Azure DevOps pipeline templates and YAML files.
- `.github/` โ GitHub-specific configurations and workflows.
- `PowerShellModules/` โ Custom PowerShell modules used in the pipeline orchestration.
- `Tests/` โ Example test scripts and related resources.
- `containers/` โ Container and Docker-related definitions for pipeline/testing.
- `terraform/` โ Example Terraform modules and configuration for test/demo use.
- `Run-AzTerraform.ps1` โ PowerShell script used to orchestrate Terraform init/plan/apply/destroy logic.
- `Run-Docker.ps1` โ PowerShell script to build and run local Docker containers for testing.
- `Terraform-Release.ps1` โ Script to manage release/versioning of Terraform modules.
---
## ๐ Getting Started
### Prerequisites
- Azure DevOps organization and permissions to create pipelines and service connections.
- Azure subscription for resource deployments.
- [Terraform](https://www.terraform.io/) (unless using the provided Docker/tenv setup).
- [Docker](https://www.docker.com/) (optional, for local dev/testing).
---
### Usage
1. **Clone the repository:**
```bash
git clone https://github.com/libre-devops/terraform-azure-azdo-pipeline-templates.git
```
2. **Reference the Templates:**
Reference pipeline templates from the `.azuredevops/` directory in your Azure DevOps pipeline YAML files. Example:
```yaml
stages:
- template: .azuredevops/templates/stages/terraform-init-plan.yaml
parameters:
# ...your parameters here
```
3. **Customize Parameters:**
Adjust template parameters for your own Azure environment and Terraform stacks.
4. **Run Your Pipeline:**
Create and run pipelines via Azure DevOps Pipelines UI or CLI.
---
## ๐งช Local Testing with Docker
For local, containerized testing, use the included `Run-Docker.ps1` script:
```powershell
.\Run-Docker.ps1
```
This will build a Docker image and execute scripts in a consistent environment matching the pipeline.
---
## ๐ License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
---
## ๐ More Information
- Visit [Libre DevOps](https://github.com/libre-devops) for more modules, pipelines, and best-practice infrastructure code.
- Issues and PRs welcome!