An intelligent assistant that guides you through Terraform infrastructure management, from local development to enterprise-wide distribution. This agent helps you choose the right deployment strategy and provides step-by-step guidance for implementing Terraform across four progressive scenarios.
This agent specializes in helping you:
- Choose the right Terraform deployment approach based on your needs
- Navigate four progressive scenarios from simple to enterprise-scale
- Monitor your progress and suggest next steps contextually
- Migrate between scenarios as your requirements evolve
- Implement best practices for state file management and team collaboration
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β TERRAFORM DEPLOYMENT SCENARIOS β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
SCENARIO 1 SCENARIO 2 SCENARIO 3 SCENARIO 4
βββββββββββββ βββββββββββββ βββββββββββββ βββββββββββββ
β π» LOCAL β β βοΈ CLOUD β β π¦ PRODUCTβ β π GLOBAL β
β β ββ> β β ββ> β β ββ> β β
β Run on β β Team β β Versioned β β Share β
β Computer β β Shares β β Releases β β Everyone β
βββββββββββββ βββββββββββββ βββββββββββββ βββββββββββββ
β β β β
βΌ βΌ βΌ βΌ
βββββββββββ βββββββββββ βββββββββββ βββββββββββ
β π€ Solo β βπ₯ Team β βπ Multi β βπ’ Org β
β Testing β β Collab β β Deploy β β Wide β
βββββββββββ βββββββββββ βββββββββββ βββββββββββ
State: Local State: Cloud State: Per Deploy State: Per User
Risk: β οΈ High Risk: β
Low Risk: β
Low Risk: β
Low
Speed: β‘ Fast Speed: π’ Slower Speed: π’ Slower Speed: π’ Slower
Setup: β
Easy Setup: π Medium Setup: π Complex Setup: π Complex
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β EVOLUTION PATH: Start anywhere, but Scenario 4 requires Scenario 3 first β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
What it means: Run Terraform directly on your laptop/desktop
Best for:
- Quick experiments and testing
- Learning Terraform
- Solo projects
- Short-term resources (< 1 week)
Key characteristics:
- β Fast iteration and immediate feedback
- β Zero setup complexity
β οΈ State file stored locally (risk of loss)β οΈ Only you can manage the resources
What it means: Team collaborates on the SAME infrastructure using cloud-based Terraform
Best for:
- Team collaboration
- Long-term resources (> 1 month)
- Production environments
- Shared infrastructure management
Key characteristics:
- β Cloud-backed state file (protected)
- β Multiple team members can manage together
- β Disaster recovery built-in
- π Requires Git repository setup
What it means: Create versioned releases (v1.0, v2.0) where each deployment creates NEW, independent infrastructure
Best for:
- Reusable templates
- Multiple teams needing separate environments
- Version tracking and rollback capability
- Different deployment instances
Key characteristics:
- β Formal version releases (v1.0.0, v2.0.0)
- β Each deployment = new workspace + new resources
- β Independent lifecycle per instance
- π Must have Scenario 2 foundation (Git + releases)
What it means: Publish your template organization-wide for company-wide self-service
Best for:
- Mature, proven templates
- Organization-wide standards
- Reducing duplicate work
- Self-service infrastructure
Key characteristics:
- β Available to entire organization
- β Centralized support and maintenance
- β Standardized infrastructure patterns
- π Requires Scenario 3 first (must have product offering)
βββββββββββββββ βββββββββββββββ βββββββββββββββ βββββββββββββββ
β SCENARIO 1 β ββ>β SCENARIO 2 β ββ>β SCENARIO 3 β ββ>β SCENARIO 4 β
β START β β GROW β β SCALE β β SHARE β
βββββββββββββββ βββββββββββββββ βββββββββββββββ βββββββββββββββ
Run on My Run on Cloud Create Versions Share with
Computer (Team Shares) (Separate Infra) Everyone
Important: Each scenario builds on the previous one. You can start anywhere, but Scenario 4 requires Scenario 3 to be completed first.
| β Check Your Situation | β Your Scenario |
|---|---|
| Just testing quickly | Scenario 1 |
| Solo work, short-term | Scenario 1 |
| Team collaboration needed | Scenario 2 |
| Resources exist long-term (>few weeks) | Scenario 2 |
| Need version tracking (v1.0, v2.0) | Scenario 3 |
| Multiple teams need separate copies | Scenario 3 |
| Template useful company-wide | Scenario 4 |
The agent uses five specialized skills to guide you:
- terraform-deployment-decision-guide.md - Decision framework for choosing between scenarios
- local-terraform-management.md - Manage Terraform locally (Scenario 1)
- cloud-schematics-terraform.md - Deploy with IBM Schematics for team collaboration (Scenario 2)
- terraform-product-offerings.md - Create versioned product offerings (Scenario 3)
- global-terraform-sharing.md - Share templates organization-wide (Scenario 4)
The agent examines your workspace to understand:
- Current Terraform setup
- Existing files and repositories
- Team collaboration needs
- Resource lifecycle requirements
Based on your situation, the agent recommends:
- Which scenario fits your needs
- Why that scenario is appropriate
- What you need to implement it
- Potential migration paths
The agent actively tracks:
- β Scenario 1: Local Terraform files, state file existence
- β Scenario 2: Git repository, Schematics workspace setup
- β Scenario 3: Git releases, product offering creation
- β Scenario 4: Global publishing, documentation completeness
The agent provides next-step recommendations like:
- "You have local Terraform running. Ready to enable team collaboration? Let's migrate to Scenario 2."
- "Your Schematics workspace is set up. Consider creating formal releases (Scenario 3) for version control."
- "Your product offering is mature. Time to share it organization-wide (Scenario 4)?"
The agent recognizes when you're ready to evolve:
- 1 β 2: Multiple team members need access, or resources becoming long-term
- 2 β 3: Need for version tracking, multiple deployments required
- 3 β 4: Template proven valuable, ready for organization-wide adoption
The state file is Terraform's critical map to your actual cloud resources. It tracks what exists and enables proper updates. Different scenarios handle state files differently:
- Scenario 1: Stored on your local machine (vulnerable to loss)
- Scenario 2: Stored in IBM Cloud (protected, shared)
- Scenario 3: Separate state file per deployment instance
- Scenario 4: Separate state file per user deployment
Shared Infrastructure (Scenario 2):
- One workspace = One set of resources
- Team works together on same servers/databases
- Updates affect everyone
Separate Infrastructure (Scenarios 3 & 4):
- Each deployment = New workspace + New resources
- Everyone gets their own servers/databases
- Updates don't affect other instances
- IBM Cloud account (for Scenarios 2-4)
- Git repository (for Scenarios 2-4)
- Terraform installed locally (for Scenario 1)
- Basic understanding of infrastructure as code
- Start with the agent: Describe your situation
- Get recommendation: Agent suggests appropriate scenario
- Follow guidance: Agent provides step-by-step instructions
- Monitor progress: Agent tracks your implementation
- Evolve as needed: Agent suggests when to upgrade scenarios
The agent evaluates multiple factors:
| Factor | Weight | Considerations |
|---|---|---|
| Team Size | High | Single user vs. collaborative team |
| Resource Lifetime | Critical | Hours vs. weeks vs. months |
| Environment Type | High | Development vs. production |
| Collaboration Need | Critical | Solo vs. team vs. organization |
| Risk Tolerance | High | State file protection requirements |
| Compliance | Critical | Regulatory and audit requirements |
- Scenario: 1 (Local)
- Why: Quick iteration, disposable resources, no collaboration needed
- Scenario: 2 (Cloud - Team Shares)
- Why: Team collaboration essential, long-term resources, production-bound
- Scenario: 3 (Product Offering)
- Why: Multiple teams need separate database instances, version tracking required
- Scenario: 4 (Global Sharing)
- Why: Proven template, useful company-wide, reduces duplication
- Using Local for Production - State file loss causes outages
- Using Cloud for Quick Tests - Overhead slows development
- No Migration Plan - Stuck with local when team grows
- Ignoring State File Backups - Lost state = unmanaged resources
- Mixing Local and Cloud - State conflicts and resource drift
- Fresh Start (Recommended): Deploy new resources in cloud
- State Import: Import existing state file to Schematics
- Parallel Management: Run both temporarily, then migrate
- Create Git releases with semantic versioning
- Import releases to cloud catalog
- Share with authorized teams
- Complete quality and security reviews
- Enhance documentation
- Establish support structure
- Publish to enterprise catalog
βββ README.md (this file)
βββ agent.md (agent configuration)
βββ terraform-deployment-decision-guide.md (decision framework)
βββ local-terraform-management.md (Scenario 1)
βββ cloud-schematics-terraform.md (Scenario 2)
βββ terraform-product-offerings.md (Scenario 3)
βββ global-terraform-sharing.md (Scenario 4)
βββ notes/
βββ terraform-scenarios.txt (operational notes)
"I'm testing a new Terraform module quickly" β Agent recommends Scenario 1, provides local setup guidance
"My team needs to manage production infrastructure together" β Agent recommends Scenario 2, guides Schematics setup
"We want to create reusable templates with version control" β Agent recommends Scenario 3, helps create product offerings
"Our template is mature and should be available company-wide" β Agent recommends Scenario 4, guides global publishing
- How long will these resources exist?
- Who needs to manage them?
- What's the risk if state file is lost?
- Are there compliance requirements?
- Is this development or production?
- How often will changes occur?
- What's the team size?
- Start with Scenario 1 (Local)
- Learn Terraform basics
- Understand state file importance
- Practice with disposable resources
- Move to Scenario 2 (Cloud)
- Set up Git repository
- Create Schematics workspace
- Collaborate with team
- Implement Scenario 3 (Product Offerings)
- Create versioned releases
- Distribute to multiple teams
- Manage multiple instances
- Achieve Scenario 4 (Global Sharing)
- Publish organization-wide
- Establish support structure
- Drive infrastructure standards
- State files may contain sensitive data
- Never commit state files to version control
- Use IAM for access control
- Encrypt state file storage
- Rotate credentials regularly
- Implement audit logging
- Scenario 1: Pay only for created resources
- Scenario 2: Schematics workspace is free, pay for resources
- Scenario 3: Catalog management free, pay per deployment
- Scenario 4: Same as Scenario 3, but more deployments
The agent provides contextual help based on:
- Your current scenario
- Progress made so far
- Blockers encountered
- Next logical steps
Simply describe your situation, and the agent will guide you through the appropriate scenario.
- Local for speed, Cloud for safety
- Single user = Local, Team = Cloud
- Short-term = Local, Long-term = Cloud
- Development = Flexible, Production = Cloud
- When in doubt, choose Cloud
This agent transforms Terraform infrastructure management from a complex decision into a guided journey. Whether you're a solo developer testing locally or an enterprise architect publishing global standards, the agent provides the right guidance at the right time.
Start simple, evolve as needed, and let the agent guide you through each step of your infrastructure journey.
Ready to get started? Tell the agent about your Terraform needs, and it will recommend the best path forward!