Cloud infrastructure built as code and delivered through GitLab.
We build AWS and Google Cloud environments with Terraform, reviewed in merge requests and applied by GitLab pipelines, so every change is planned, approved, repeatable and recorded. Azure is supported with the same approach.
Common technologies and the role each can play.
- TerraformInfrastructure as code
- AWSCloud infrastructure
- Google CloudCloud infrastructure
- GitLabReview and delivery
Tools are selected for your environment. Product names identify the technologies discussed and do not imply endorsement.
AWS and Google Cloud building blocks
We choose managed services that suit the workload, and keep the Terraform structure the same on either cloud.
| Capability | AWS | Google Cloud |
|---|---|---|
| Accounts / isolation | AWS Organizations, accounts per environment | Resource hierarchy, projects per environment |
| Networking | VPC, subnets, NAT gateway, security groups | VPC, subnets, Cloud NAT, firewall rules |
| Kubernetes | Amazon EKS | Google Kubernetes Engine (GKE) |
| Virtual machines | Amazon EC2, Auto Scaling groups | Compute Engine, managed instance groups |
| Serverless containers | ECS on Fargate, App Runner | Cloud Run |
| Container registry | Amazon ECR | Artifact Registry |
| Databases | Amazon RDS, Aurora | Cloud SQL, AlloyDB |
| Object storage | Amazon S3 | Cloud Storage |
| Secrets | Secrets Manager, KMS | Secret Manager, Cloud KMS |
| CI/CD identity | IAM role trusted via GitLab OIDC | Workload Identity Federation |
| Terraform state | S3 backend with lockfile | GCS backend |
How we structure Terraform
Reusable modules
Network, cluster, database and monitoring modules are versioned and shared by every environment.
Isolated environments
Separate state, accounts or projects for dev, staging and production limit the impact of any change.
Plan on every MR
Reviewers see exactly what will change; apply uses the saved plan from the approved pipeline.
Policy as code
Checkov and TFLint catch insecure or non-standard resources before they are created.
No static keys
GitLab OIDC tokens are exchanged for short-lived AWS or Google Cloud credentials per job.
Drift detection
A scheduled plan-only pipeline reports changes made outside Terraform.
infra/
├── modules/ # reusable, versioned building blocks
│ ├── network/ # VPC, subnets, NAT, firewall rules
│ ├── cluster/ # EKS or GKE, node pools, IAM bindings
│ ├── database/ # RDS or Cloud SQL, backups, access
│ └── observability/ # Prometheus, Loki, Grafana stack
└── envs/
├── dev/ # same modules, smaller sizes
├── staging/
└── prod/ # stricter policies, approvals requiredterraform {
backend "s3" { # AWS
bucket = "example-terraform-state"
key = "prod/network.tfstate"
region = "ap-south-1"
encrypt = true
use_lockfile = true # S3-native state locking
}
}
# Google Cloud equivalent:
# terraform {
# backend "gcs" {
# bucket = "example-terraform-state"
# prefix = "prod/network"
# }
# }Want this running in your team?
Tell us about your stack, cloud and delivery goals. We will propose a scope, a timeline and the first quick wins.