Verification & Testing
Deployment Checklist
Before testing commands, verify each component:
AWS Infrastructure
- CloudFormation stack shows CREATE_COMPLETE
- ECS service has 1 running task
- API Gateway endpoint responds to health check
- CloudWatch logs are being created
- Secrets Manager contains credentials
Microsoft Teams (if using Teams)
- Azure Bot shows Teams channel as Running
- Webhook URL is configured correctly
- Teams app is installed
- Bot appears in Teams chat/channel
Google Chat (if using Google Chat)
- Google Chat API enabled and configured
- Service account credentials stored in CloudFormation
- Chat app appears in Google Chat search
- Bot is added to a space or direct message
Bedrock
- Claude Sonnet 4.5 shows Access granted
- Model is available in deployment region
Your First Commands
The commands below work in both Microsoft Teams and Google Chat. In Teams, use @Ohlala SmartOps to mention the bot. In Google Chat direct messages, you can type commands directly without mentioning.
1. Test Connection
Teams: @Ohlala SmartOps hello
Google Chat (direct message): hello
Expected Response: Friendly greeting confirming the bot is working
2. Get Help
Teams: @Ohlala SmartOps help
Google Chat: /help
Expected Response: Interactive card with available commands and examples
3. Check Instance Status
show me my EC2 instances
Expected Response: List of your EC2 instances with status information
4. Health Report
/health
Expected Response: Detailed health metrics for your instances
5. Natural Language Query
which instances are running in us-east-1?
Expected Response: Filtered list based on your query
Advanced Testing
Test SSM Integration
@Ohlala SmartOps check disk space on i-1234567890abcdef0
- Verifies SSM command execution
- Returns disk usage information
Test Cost Analysis
@Ohlala SmartOps analyze my EC2 costs
- Checks CloudWatch metrics access
- Provides cost optimization suggestions
Test Multi-Instance Commands
@Ohlala SmartOps show me all stopped instances
- Tests filtering and analysis capabilities
- Demonstrates natural language understanding
Monitoring Your Deployment
CloudWatch Metrics
Monitor key metrics in CloudWatch:
-
ECS Service
- CPU utilization (should be <50%)
- Memory utilization (should be <70%)
- Task count (should be 1)
-
API Gateway
- Request count
- 4XX/5XX errors (should be minimal)
- Latency (should be <3 seconds)
-
Bedrock Usage
- Token consumption
- API throttling events
- Model invocation errors
Common Issues & Solutions
Issue: Bot Not Responding
Quick Diagnosis:
# Check health endpoint
curl https://your-api.execute-api.region.amazonaws.com/prod-stackname/health
Solutions:
- Check ECS task is running
- For Teams: Verify webhook URL in Azure Bot configuration
- For Google Chat: Verify webhook URL in Chat API Configuration
- Ensure the app is installed correctly
- Review CloudWatch logs
Issue: “Model Access Required” Error
Symptom: Bot responds but shows Bedrock error
Solution:
- Go to Bedrock Console then Model access
- Enable Claude Sonnet 4.5
- Wait for “Access granted”
- Retry command (no restart needed)
Issue: No Instances Found
Symptom: Bot works but doesn’t see EC2 instances
Checks:
- Instances are in same region as deployment
- Instances have SSM agent installed
- IAM permissions are correct
- Try:
list all instances in all regions
Issue: Commands Timeout
Symptom: Bot shows “thinking” but never responds
Solutions:
- Check ECS task memory/CPU
- Look for Bedrock throttling
- Verify network connectivity
- Scale ECS service if needed
Issue: Teams Authentication Failures
Symptom: 401/403 errors in logs for Teams requests
Solutions:
- Regenerate Azure Bot credentials
- Update Secrets Manager
- Restart ECS service
- Check tenant ID is correct
Issue: Google Chat Authentication Failures
Symptom: 401/403 errors in logs for Google Chat requests
Solutions:
- Verify service account JSON is correctly formatted (single line)
- Check the service account has the correct permissions
- Verify the Project ID matches the service account
- Check the Authentication Audience setting in Chat API Configuration
Best Practices
- Start simple: Use basic commands first
- Be specific: Include instance IDs for targeted actions
- Use natural language: The bot understands context
- Review suggestions: Always verify before applying changes
Success Indicators
Your deployment is successful when:
- Bot responds within 2-3 seconds
- All test commands work
- No errors in CloudWatch logs
- Costs align with expectations
- Team members can use the bot
Next Steps
Now that your bot is working:
-
Explore Features
- Try advanced commands
- Experiment with natural language queries
- Review health and cost reports
-
Train Your Team
- Share the bot with team members
- Create usage guidelines
- Document common workflows
Getting Help
If you encounter issues:
-
Check Documentation
-
Contact Support
- Email: support@ohlala.cloud
- Include: Stack name, region, error messages
-
Community Resources
- Email: support@ohlala.cloud
- AWS Forums
- Teams Community
Congratulations
You’ve successfully deployed Ohlala SmartOps. Your AI-powered infrastructure assistant is ready to help manage your AWS environment through natural language conversations in Microsoft Teams, Google Chat, or both.
Happy automating!