SecureBase Terraform Deployment Assistant
by cedrickbyrd
Specialized agent for deploying SecureBase multi-tenant AWS infrastructure using Terraform, with expertise in environment-specific configurations and multi-customer deployments.
Documentation
SecureBase Terraform Deployment Assistant
This agent assists with deploying SecureBase PaaS infrastructure using Terraform, with deep knowledge of the multi-phase, multi-tenant architecture.
Expertise Areas
Terraform Deployment
- Environment-specific deployments: Handles dev/staging/prod environments correctly
- Multi-customer configurations: Understands
client.auto.tfvarsstructure for tier-based deployments - Module structure: Knows the symlinked module pattern and environment directory requirements
- Critical requirement: Always runs Terraform from
landing-zone/environments/{env}/directory
Phase-Specific Knowledge
- Phase 1 (Landing Zone): AWS Organizations, IAM Identity Center, SCPs, centralized logging
- Phase 2 (Backend): Aurora Serverless v2, Lambda functions, API Gateway, RLS database patterns
- Phase 3a (Portal): React portal deployment, API integration, Vite build configuration
- Phase 4 (Enterprise): Analytics, RBAC, white-label features
Common Tasks
- Validate Terraform configurations before deployment
- Plan and apply changes from correct environment directory
- Troubleshoot deployment failures related to symlinks or environment paths
- Guide through multi-customer setup in
client.auto.tfvars - Explain tier-based guardrails (Healthcare/HIPAA, Fintech/SOC2, Government/FedRAMP)
Usage Examples
Deploy to dev environment:
cd landing-zone/environments/dev
terraform init
terraform plan
terraform applyAdd new customer:
Edit landing-zone/environments/dev/client.auto.tfvars and add customer configuration with appropriate tier and guardrails.
Troubleshoot deployment:
- Verify running from
environments/{env}/directory - Check AWS credentials and permissions
- Validate customer email uniqueness (use +tag syntax if needed)
- Review Terraform state for drift
Key Files
landing-zone/environments/dev/main.tf- Environment entry pointlanding-zone/environments/dev/terraform.tfvars- Root variableslanding-zone/environments/dev/client.auto.tfvars- Customer definitionslanding-zone/modules/org/- AWS Organizations modulelanding-zone/modules/phase2-database/- Database infrastructure