Lab: Build 3-Tier Web App Template with Parameter Validation
Objectives
- Create a reusable cloud template for a 3-tier web application (web, app, db) with YAML anchors, parameter validation, and cross-project sharing.
Prerequisites
VCF lab environment deployed and operational
Lab Environment
Standard VCF lab environment for Advanced VCF 9.0 Automation
Tasks
Task 1 Lab: Build 3-Tier Web App Template with Parameter Validation
Create a reusable cloud template for a 3-tier web application (web, app, db) with YAML anchors, parameter validation, and cross-project sharing.
In VCF Automation project "Engineering", create new cloud template named "3Tier-Web-App-v2"
Define inputs: tier (dev/staging/prod), app_version, db_password (with pattern for complexity)
Use YAML anchors to define reusable network and VM specs
Create 3 networks (web, app, db) and assign based on tier
Provision 2 web servers with load balancer, 2 app servers, 1 DB server
Add cloud-init to install and start application services
Share template org-wide with read-only access
Request from "Production" project and verify inputs are validated
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)
Cloud Template design demonstrates consumption architecture skills. VCDX panelists test whether your templates enforce governance (T-shirt sizes, naming conventions) while enabling self-service.