This document provides practical examples of how to use the Atlantis MCP Server for common development scenarios.
Goal: Create a new serverless API project using Atlantis conventions.
Steps:
Find Appropriate Starter Code
Ask AI: "Show me available application starters for Node.js"
Response includes starters with language, framework, and features.
Get Starter Details
Ask AI: "Tell me about atlantis-starter-02"
Review prerequisites, features, and example code.
Identify Required Templates
Ask AI: "What templates do I need for a serverless API?"
AI suggests:
Validate Project Naming
Ask AI: "Validate these names:
- acme-person-api-test-GetPersonFunction
- acme-person-api-test-PersonTable
- acme-person-api-test-ApiGateway"
AI validates each name and provides feedback.
Get Template Content
Ask AI: "Get template-pipeline.yml and explain the parameters"
AI provides template with parameter descriptions.
Expected Outcome: Complete project structure with validated naming and appropriate templates.
Goal: Implement caching using DynamoDB and cache-data package.
Steps:
Search for Caching Documentation
Ask AI: "Search documentation for DynamoDB caching patterns"
AI returns relevant documentation and code examples.
Find Storage Template
Ask AI: "Show me storage templates for DynamoDB"
AI lists available DynamoDB templates.
Get Template Details
Ask AI: "Get template-storage-dynamodb-cache.yml"
AI provides template with parameters and outputs.
Find Code Examples
Ask AI: "Find code examples for cache-data package"
AI provides implementation examples.
Validate New Resources
Ask AI: "Validate: acme-myapp-test-CacheTable"
AI confirms naming is correct.
Expected Outcome: DynamoDB table template and implementation code following best practices.
Goal: Safely update template-pipeline.yml from v2.0.17 to latest.
Steps:
Check for Updates
Ask AI: "Check if template-pipeline.yml v2.0.17 has updates"
AI reports:
Review Changelog
Ask AI: "Show me the full changelog for template-pipeline.yml v2.0.18"
AI provides detailed changes:
Get New Version
Ask AI: "Get template-pipeline.yml version v2.0.18"
AI provides updated template content.
Compare Versions
Ask AI: "What are the differences between v2.0.17 and v2.0.18?"
AI highlights key changes.
Verify Compatibility
Ask AI: "Are there any breaking changes in v2.0.18?"
AI confirms no breaking changes.
Expected Outcome: Safe template update with full understanding of changes.
Goal: Understand and implement Lambda best practices using Atlantis patterns.
Steps:
Search Documentation
Ask AI: "Search documentation for Lambda function best practices"
AI returns guides and tutorials.
Find Code Examples
Ask AI: "Show me Lambda function examples from starters"
AI provides code snippets with explanations.
Learn Caching Patterns
Ask AI: "How do I implement caching in Lambda functions?"
AI explains cache-data integration.
Understand Error Handling
Ask AI: "What are error handling patterns for Lambda?"
AI provides error handling examples.
Review Naming Conventions
Ask AI: "What are the naming conventions for Lambda functions?"
AI explains:
Prefix-ProjectId-StageId-FunctionName
Expected Outcome: Comprehensive understanding of Lambda best practices with code examples.
Goal: Ensure all resource names follow Atlantis conventions before deploying.
Steps:
Validate Lambda Functions
Ask AI: "Validate these Lambda function names:
- acme-myapp-test-GetUserFunction
- acme-myapp-test-CreateUserFunction
- acme-myapp-test-DeleteUserFunction"
AI validates each name.
Validate DynamoDB Tables
Ask AI: "Validate: acme-myapp-test-UsersTable"
AI confirms valid.
Validate S3 Buckets
Ask AI: "Is this S3 bucket name valid:
acme-myapp-test-us-east-1-123456789012"
AI validates S3 bucket naming pattern.
Validate CloudFormation Stack
Ask AI: "Validate: acme-myapp-test-ApiStack"
AI confirms valid.
Get Naming Suggestions
Ask AI: "I have a function that processes orders. What should I name it?"
AI suggests:
acme-myapp-test-ProcessOrdersFunction
Expected Outcome: All resources validated before deployment, preventing naming errors.
Goal: Implement CloudFront caching for S3-hosted website.
Steps:
Search for CloudFront Documentation
Ask AI: "Search documentation for CloudFront caching"
AI returns relevant guides.
Find Template Patterns
Ask AI: "Show me CloudFormation patterns for CloudFront"
AI provides template examples.
Search for Code Examples
Ask AI: "Find code examples for CloudFront invalidation"
AI provides Lambda function examples.
Find Related Templates
Ask AI: "What templates do I need for CloudFront with S3?"
AI suggests:
Get Implementation Guide
Ask AI: "How do I set up CloudFront with S3 origin?"
AI provides step-by-step guide.
Expected Outcome: Complete implementation guidance with templates and code examples.
Goal: Manage templates and naming across multiple environments.
Steps:
Validate Test Environment Names
Ask AI: "Validate these test environment names:
- acme-myapp-test-ApiFunction
- acme-myapp-test-DataTable"
AI confirms valid.
Validate Beta Environment Names
Ask AI: "Validate these beta environment names:
- acme-myapp-beta-ApiFunction
- acme-myapp-beta-DataTable"
AI confirms valid.
Validate Production Environment Names
Ask AI: "Validate these production environment names:
- acme-myapp-prod-ApiFunction
- acme-myapp-prod-DataTable"
AI confirms valid.
Get Environment-Specific Templates
Ask AI: "What templates should I use for production vs test?"
AI explains differences:
Check Template Versions Across Environments
Ask AI: "I'm using template-pipeline.yml v2.0.17 in test and v2.0.16 in prod. Should I update prod?"
AI checks for updates and breaking changes.
Expected Outcome: Consistent naming and appropriate templates across all environments.
Goal: Help new developer understand Atlantis conventions and available resources.
Steps:
Introduce Available Resources
Ask AI: "What CloudFormation templates are available?"
AI lists all templates by category.
Explain Naming Conventions
Ask AI: "Explain Atlantis naming conventions"
AI provides detailed explanation with examples.
Show Starter Code
Ask AI: "What application starters are available?"
AI lists starters with descriptions.
Provide Documentation Links
Ask AI: "Where can I find documentation for cache-data?"
AI provides documentation links and examples.
Validate Example Names
Ask AI: "Validate this name I created: myapp-function-test"
AI identifies issues and suggests:
acme-myapp-test-MyFunction
Expected Outcome: New team member understands conventions and can find resources independently.
Scenario: Organization uses multiple S3 buckets for different teams.
Ask AI: "Show me templates from the finance bucket"
AI filters results to specific bucket.
Scenario: Need to understand changes between versions.
Ask AI: "Compare template-storage.yml v1.3.5 and v2.0.0"
AI highlights differences and breaking changes.
Scenario: Validate all resources in a CloudFormation template.
Ask AI: "Validate all resource names in this template:
[paste template content]"
AI validates each resource and reports issues.
Scenario: Find specific type of documentation.
Ask AI: "Find troubleshooting guides for Lambda functions"
AI filters by documentation type.
Scenario: Choose between multiple starters.
Ask AI: "Compare atlantis-starter-01 and atlantis-starter-02"
AI highlights differences in features and use cases.
Instead of: “Show me templates” Use: “Show me Pipeline templates version v2.0.18”
Leverage filtering capabilities: - By category - By version - By bucket - By organization
Check naming before writing code:
Ask AI: "Validate: acme-myapp-test-MyFunction"
Before asking general questions:
Ask AI: "Search documentation for [topic]"
Stay current:
Ask AI: "Check all my templates for updates"
Learn by example:
Ask AI: "Show me code examples for [feature]"
If you need help with a specific use case: