GitLab

Using child pipelines to continuously deploy to five environments

Sep 26, 2024Olivier Dupré
Using child pipelines to continuously deploy to five environments
SummaryAI, from the source post

This post introduces a strategy for continuous deployment to multiple environments (review, integration, QA, staging, production) using GitLab CI/CD child pipelines and Terraform. It details the setup of Terraform code for deploying AWS resources (VPC, subnets, EC2 instance) and configuring a Terraform HTTP backend to store state in GitLab. The workflow includes automated deployment to temporary review environments that are destroyed upon branch closure, automated deployment to an integration environment, manual triggers for QA and production, and tag-based deployment to staging.

More from the GitLab CI and Distributed Builds trail