Production-style Infrastructure-as-Code project for provisioning secure, modular Google Cloud infrastructure using Terraform.
This repository demonstrates the design and deployment of cloud infrastructure for ZonedAccuracy using Terraform and Google Cloud Platform.
The infrastructure is organized into reusable modules for networking, IAM, compute, and storage with separate development and production environment configurations.
Google Cloud Platform
|
ZonedAccuracy
|
+---------------------+---------------------+
| |
Custom VPC Cloud Storage
zonedaccuracy-dev-vpc Private Bucket
| Versioning
| Lifecycle Rules
10.10.0.0/24
Subnet
|
v
Compute Engine
zonedaccuracy-dev-app
|
Internal IP
|
Shielded VM
Secure Boot
vTPM
Integrity Monitoring
OS Login
IAM
|
Terraform Service Account
|
Network Administration
Security Administration
- Custom Google Cloud VPC
- Custom subnet architecture
- Private Google API access
- Internal firewall rules
- Regional routing
- Google Compute Engine
- Private internal networking
- Shielded VM
- Secure Boot
- Virtual Trusted Platform Module (vTPM)
- Integrity monitoring
- OS Login
- Dedicated service account
- Terraform-managed service account
- Explicit IAM role assignments
- Network administration permissions
- Security administration permissions
- Google Cloud Storage
- Uniform bucket-level access
- Public access prevention
- Object versioning
- Automated storage lifecycle policies
modules/
├── compute/
│ ├── main.tf
│ ├── outputs.tf
│ └── variables.tf
├── iam/
│ ├── main.tf
│ ├── outputs.tf
│ └── variables.tf
├── network/
│ ├── main.tf
│ ├── outputs.tf
│ └── variables.tf
└── storage/
├── main.tf
├── outputs.tf
└── variables.tf
Environment configuration examples are provided for:
- Development
- Production
environments/
├── dev/
│ └── terraform.tfvars.example
└── prod/
└── terraform.tfvars.example
Sensitive .tfvars files and Terraform state are excluded from source control.
Initialize:
terraform initFormat:
terraform fmt -recursiveValidate:
terraform validateReview infrastructure changes:
terraform planDeploy:
terraform applyThe infrastructure implements:
- Private compute networking
- Public storage access prevention
- Uniform bucket-level permissions
- Dedicated service accounts
- IAM role-based access control
- Shielded VM protections
- Secure Boot
- vTPM
- Integrity monitoring
- OS Login
- Terraform state exclusion from Git
- Secret and credential exclusion from Git
- Terraform
- Google Cloud Platform
- Google Compute Engine
- Google Cloud VPC
- Google Cloud IAM
- Google Cloud Storage
- Git
- GitHub
This repository is part of the ZonedAccuracy Cloud Portfolio, demonstrating practical Cloud Engineering, Infrastructure-as-Code, DevOps, security, and automation skills.
ZonedAccuracy.com