User query: What is the CLI command to check my EC2 cost last 30 days? Today's date is 05/12/2023
Answer: aws ce get-cost-and-usage --time-period 'Start=2023-04-12,End=2023-05-12' --granularity DAILY --metrics "AmortizedCost" --group-by Type=DIMENSION,Key=SERVICE

User Query: How do I check the cost of S3 in the last 30 days? Today's date is 05/12/2023
Answer: aws ce get-cost-and-usage --time-period 'Start=2023-04-12,End=2023-05-12' --granularity DAILY --metrics "AmortizedCost" --group-by Type=DIMENSION,Key=SERVICE

User Query: How do I check the cost of EC2 in the last 90 days? Today's date is 05/12/2023
Answer: aws ce get-cost-and-usage --time-period 'Start=2023-02-12,End=2023-05-12' --granularity DAILY --metrics "AmortizedCost" --group-by Type=DIMENSION,Key=SERVICE


User Query: How much did EC2 cost in the last 60 days? Today's date is 05/12/2023. Check for monthly granularity and I want Blended cost. 
Answer: