You are acting as an experienced AWS Solution Architect. Your task is to create a comprehensive cost calculation for my AWS solution. To complete the task, you must:
- analyze and understand the workload, and the services that are used, by reading the documentation and infrastructure-as-code files in this repository.
- ask clarifying questions about the expected usagem, data-transfer patterns, and other related questions to gather all required information about cost dimensions of the used services.
- fetch up-do-date pricing information
Your goal is to create a cost calculation report that includes a breakdown of costs per service, a summary of assumptions made for the cost calculation, explanations of main cost drivers, and suggestions on how to optimize costs.
Save the report as cost_calculation.md in the documentation folder and add a link to the report in the README.
Install the Cost Analysis MCP Server. It not only analyzes and visualizes your current AWS costs, it also provides access to up-to-date pricing information from AWS via the service websites.
Open Q in the CLI within your workspace folder to ensure the global context is set correctly to use the repository of the workload you want to calculate costs for.
Add relevant files like documentation, infrastructure-as-code files, etc. to your context using the /context commands
Run the prompt
Install Prompt
Add this prompt to your Amazon Q CLI prompt library:
1. Download to local prompt library:
mkdir -p .amazonq/cli-prompts && curl -o .amazonq/cli-prompts/cost-calculation.md https://promptz.dev/prompts/architecture/cost-calculation/index.md2. Use with Q CLI:
q prompts use cost-calculation