https://github.com/tukue/terraform-automation
This repository contains Terraform configurations to deploy a scalable web application on Google Cloud Platform (GCP). It includes a VPC network, Cloud SQL database, managed instance group for web servers, and an HTTP load balancer with health checks. The setup is parameterized for flexibility using variables.
https://github.com/tukue/terraform-automation
automation devops-platform devops-practices gcp infrastructure-as-code terraform
Last synced: 10 days ago
JSON representation
This repository contains Terraform configurations to deploy a scalable web application on Google Cloud Platform (GCP). It includes a VPC network, Cloud SQL database, managed instance group for web servers, and an HTTP load balancer with health checks. The setup is parameterized for flexibility using variables.
- Host: GitHub
- URL: https://github.com/tukue/terraform-automation
- Owner: tukue
- Created: 2025-04-30T10:07:25.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-18T09:58:41.000Z (about 1 year ago)
- Last Synced: 2025-06-18T10:50:20.408Z (about 1 year ago)
- Topics: automation, devops-platform, devops-practices, gcp, infrastructure-as-code, terraform
- Language: HCL
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advanced Terraform Project
This project demonstrates advanced Terraform practices for infrastructure deployment.
## Prerequisites
- Terraform v1.0.0+
- PowerShell Core (pwsh) for security scanning
- Terrascan for security scanning
- Act (optional, for running GitHub Actions locally)
## Local Development
### Security Scanning
You can run security scans locally using:
1. PowerShell script:
```
pwsh ./scan-terraform.ps1
```
2. GitHub Actions locally (requires act):
```
act -j security-scan -W .github/workflows/terraform-security.yml
```
3. Terrascan directly:
```
terrascan scan -i terraform -d . -o human
```
### Deployment
To deploy to an environment:
```
./deploy.sh
```
Where `` is one of: qa, test, prod
## GitHub Actions
This project includes GitHub Actions workflows for:
- Terraform security scanning
- Infrastructure validation
## Project Structure
- `modules/` - Reusable Terraform modules
- `environments/` - Environment-specific variable files
- `.github/workflows/` - CI/CD workflows