---
inclusion: always
---
Enable cost-aware development workflows and patterns to optimize AWS costs throughout the development lifecycle. This guide provides practical patterns, tools, and workflows for developers to build cost-efficient applications and infrastructure.
# Analyze CDK project for AWS services and cost implications
"Analyze this CDK project for cost optimization opportunities"
# Get pricing for services identified in CDK project
"What are the costs for the services used in this CDK stack?"
# Compare architecture alternatives
"Compare costs between this CDK stack and a serverless alternative"
# Analyze Terraform project for AWS services and cost implications
"Analyze this Terraform project for cost optimization opportunities"
# Get pricing for services identified in Terraform project
"What are the costs for the services used in this Terraform configuration?"
# Regional cost comparison
"Compare costs for this Terraform stack across different AWS regions"
# Compare service costs for architecture decisions
"Compare Lambda vs ECS costs for my microservice architecture"
# Analyze storage options
"Compare costs between RDS and DynamoDB for my application"
# Regional pricing analysis
"What's the cost difference for this architecture between us-east-1 and eu-west-1?"
# Analyze development environment costs
"Show me costs for our development environments tagged with Environment=dev"
# Identify idle development resources
"Find unused development resources that can be stopped or deleted"
# Track development spending trends
"Show me development environment cost trends over the last 3 months"
# Monitor Free Tier usage to avoid unexpected charges
"Show me our current Free Tier usage across all services"
# Identify services approaching Free Tier limits
"Which services are close to exceeding Free Tier limits?"
# Optimize Free Tier usage for development
"How can we better utilize AWS Free Tier for our development workflows?"
# Analyze shared resource utilization
"Show me utilization of our shared development database"
# Identify opportunities for resource sharing
"Which development resources could be shared across teams?"
# Cost allocation for shared resources
"How should we allocate costs for shared development infrastructure?"
When to use: Event-driven workloads, variable traffic, microservices
Cost benefits: Pay-per-use, automatic scaling, no idle costs
# Analyze serverless architecture costs
"Estimate costs for a serverless API using API Gateway, Lambda, and DynamoDB"
# Compare serverless vs container costs
"Compare costs between serverless and containerized architecture for my application"
# Optimize Lambda function costs
"How can I optimize costs for my Lambda functions?"
When to use: Consistent workloads, existing containerized applications
Cost benefits: Better resource utilization, predictable costs
# Analyze container costs
"Compare ECS Fargate vs EKS costs for my containerized application"
# Optimize container resource allocation
"What's the optimal CPU and memory allocation for my ECS tasks?"
# Spot instance opportunities
"Can I use Spot instances for my containerized workloads?"
When to use: Applications with significant data storage needs
Cost benefits: Optimized storage costs, lifecycle management
# Analyze storage costs and optimization
"Analyze S3 storage costs and recommend lifecycle policies"
# Compare storage options
"Compare costs between EBS, EFS, and S3 for my application data"
# Optimize data transfer costs
"How can I reduce data transfer costs for my application?"
# Pre-deployment cost analysis in CI/CD
"Integrate cost analysis into our CI/CD pipeline for infrastructure changes"
# Cost impact of code changes
"Analyze the cost impact of this infrastructure code change"
# Automated cost reporting
"Generate cost reports for each deployment in our CI/CD pipeline"
# Infrastructure cost review
"Review this CDK/Terraform code for cost optimization opportunities"
# Service selection validation
"Validate the cost efficiency of services chosen in this architecture"
# Resource sizing review
"Review resource sizing decisions in this infrastructure code"
# Team-based cost tracking
"Track costs by development team using resource tags"
# Project-based cost allocation
"Allocate costs by project for accurate development cost tracking"
# Cost anomaly detection for development
"Set up cost anomaly detection for development environments"
# EC2 cost optimization
"Find rightsizing opportunities for our EC2 instances"
# Lambda cost optimization
"Optimize memory allocation for our Lambda functions"
# Container cost optimization
"Analyze ECS/EKS costs and recommend optimizations"
# RDS cost optimization
"Analyze RDS costs and recommend instance type optimizations"
# DynamoDB cost optimization
"Optimize DynamoDB capacity mode and throughput settings"
# Database service comparison
"Compare costs between RDS, Aurora, and DynamoDB for my use case"
# S3 cost optimization
"Implement S3 lifecycle policies to reduce storage costs"
# EBS cost optimization
"Optimize EBS volume types and sizes for cost efficiency"
# Data archival strategies
"Implement cost-effective data archival using S3 storage classes"
# Set up development team budgets
"Create budget alerts for our development team spending"
# Monitor project-specific costs
"Track costs for specific development projects"
# Development cost forecasting
"Forecast development environment costs for next quarter"
# Development-specific anomaly detection
"Set up cost anomaly detection for development environments"
# Unusual spending pattern identification
"Identify unusual spending patterns in our development accounts"
# Automated cost alerts
"Set up automated alerts for development cost spikes"
# Generate development cost reports
"Generate monthly cost reports for our development team"
# Cost efficiency metrics
"Calculate cost per developer and cost per feature delivered"
# Development ROI analysis
"Analyze ROI of our development infrastructure investments"