Lab: Build Complete GitOps Pipeline for VCF Automation
Objectives
- Create end-to-end GitOps: Git repo with cloud templates + Terraform, GitHub Actions CI/CD with validation + testing, Terraform Cloud remote state, auto-deploy to dev.
Prerequisites
VCF lab environment deployed and operational
Lab Environment
Standard VCF lab environment for Advanced VCF 9.0 Automation
Tasks
Task 1 Lab: Build Complete GitOps Pipeline for VCF Automation
Create end-to-end GitOps: Git repo with cloud templates + Terraform, GitHub Actions CI/CD with validation + testing, Terraform Cloud remote state, auto-deploy to dev.
Create GitHub repo with directory structure: cloud-templates/, terraform/, abx-actions/
Add GitHub Actions workflow: validate YAML, tflint, checkov, run unit tests
Set up Terraform Cloud organization and connect to GitHub repo
Create Terraform module for org, project, cloud template
Store VCF API token in Terraform Cloud Sensitive Variables
Configure S3 remote backend with DynamoDB locking
Create feature branch, modify template, submit PR
Verify CI/CD runs validation, Terraform plan shows changes
Merge PR, auto-deploy to dev org via terraform apply
Validation Gate
Check: Verify lab completion
Expected: Lab exercise completed successfully
Common Errors
Final Validation
Lab completed successfully
✓ All steps completed → No errors observed
Cleanup / Restore
• Revert to snapshot if needed
Design Reflection (VCDX)
GitOps for infrastructure demonstrates modern operational practices. VCDX designs that include IaC pipelines score higher on manageability.