By using AWS re:Post, you agree to the Terms of Use
/AWS Cost Explorer/

Questions tagged with AWS Cost Explorer

Sort by most recent
  • 1
  • 90 / page

Browse through the questions and answers listed below or filter and sort to narrow down your results.

AWS compute savings plan commitment calculation

I am trying to understand how the commitment per hour calculation has been done for AWS Savings plan recommendation for past 30 days. There is no document on how to calculate it, how is the calculation done for leaving the on-demand spend? As per the below usage of the services mentioned in below table, AWS cost explorer is recommending below commitment... "You could save an estimated $315 monthly by purchasing the recommended Compute Savings Plan. Based on your past 30 days of usage, we recommend purchasing 1 Savings Plan with a total commitment of $1.390/hour for a 1-year term. With this commitment, we project that you could save an average of $0.43/hour - representing a 17% savings compared to On-Demand. To account for variable usage patterns, this recommendation maximizes your savings by leaving an average $0.65/hour of On-Demand spend. Recommendations require up to 24 hours to update after a purchase." So we came to a conclusion that we should spend 0.65/hour of On-demand and 1.390/hour of commitment? Please suggest and share how we can calculate all this information if I need to do that with a different set of data. | Service| Intance family| instance type| No. of instances| Region | On-demand Spend ($) | On-demand Usage | On-demand rate | SP rate | SP Spend | % discount | | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | | EC2 | t2| micro | 1 | US East (N. Virginia) | 8.352| 720| 0.0116 | 0.0078 | 5.616 | 33% | | EC2 | t2| nano | 1 | EU (Ireland) | 4.536 | 720 | 0.0063 | 0.0048 | 3.456 | 24% | | EC2 | t2 | micro | 6 | EU (Ireland) | 53.837658 | 4,272.83 | 0.0126000000 | 0.0095 | 40.591885 | 25% | | EC2 | t2 | large | 1 | EU (Ireland) | 72.576 | 720 | 0.1008 | 0.0761 | 54.792 | 25% | | EC2 | c6a | large | 1 | EU (Ireland) | 38.4495552| 468.44 | 0.08208 | 0.05854 | 27.4224776 | 29% | | EC2 | c4 | 4xlarge | 1 | EU (Ireland) | 421.73| 466 | 0.905 | 0.667 | 310.822 | 26% | | Fargate | | GB-Hours | | EU (Ireland) | 224.9872755| 50615.81 | 0.0044450000 | 0.0034671 | 175.4900749 | 22% | | Fargate | | vCPU-Hours | | EU (Ireland) | 916.9323152 | 22651.49 | 0.0404800000 | 0.0315744 | 715.2072059 | 22% | | Lambda | | EU-Lambda-GB-Second (Second) | | EU (Ireland) | 28.250059 | 1695000.15 | 0.0000166667 | 0.0000138 | 23.39100207 | 17% | | Lambda | | EU-Request (Requests) | | EU (Ireland) | 0.94 | 4688540 | .20 | .20 | 0.94 | 0% | | **Total **| | | | | 1770.590863 | | 1.363321667 | 1.0587953 | 1357.728645 | |
1
answers
0
votes
56
views
asked 22 days ago

Disable AWS Cost Explorer permissions

I enabled Cost Explorer and my costs have gone way up. Billing shows that 152,000 requests were made in January, which translates to $1.52 but it's 75% of my total charges for that month. [Documentation](https://docs.aws.amazon.com/cost-management/latest/userguide/ce-what-is.html?icmpid=docs_ach_docs_ach_help_panel) says that "You can't disable Cost Explorer after you enable it.". I contacted AWS support and tried to follow their first suggestion of deleting all Cost Explorer reports, but the user interface does not allow deleting the core Cost Explorer reports. After realizing that, their suggestion was to remove from all users the permission to use Cost Explorer API: > It can't be disabled but charges will stop if they stop using Cost Explorer API. Cost Explorer API is not something that can be disabled, in order to stop being charged, you just have to stop using Cost Explorer API to query cost data and block ALL IAM users from using it. Cost Explorer API is only charged if a user (Root/IAM/Role) uses Cost Explorer API to query cost data. The issue is that I don't know how to do that. I believe it's some kind of "hidden"/internal service account that is doing all these requests automatically, as I didn't even open Cost Explorer Dashboard last month. If it's the root account, does IAM allow limiting its permissions? I looked at the Roles listed in IAM and none of them seem to have `ce:*` permissions. Has anyone tried to somehow disable Cost Explorer?
3
answers
0
votes
97
views
asked 5 months ago

Budget does not show actual spend

I am trying out AWS Budget, but it does not show the actual spend correctly. I have created the budget 3 days ago and set it to monitor resources with certain tags. However, the calculated actual spend is still at `0.0`, even though I can clearly see (in cost explorer) that the spend is already higher. I have also tried checking the calculated spend through AWS CLI "describe-budget" operation with the same result. In the console, I am clicking through to cost explorer using the link in the "budget history", therefore I am pretty sure I am viewing the correct data. The budget shows it was refreshed this morning, so it definitely should register the spend. ------ EDIT: Ok so I was doing some additional testing. - The original budget (that shows incorrect actual spend), I have created using Cloudformation. - Now I have created exactly the same budget, but using console. The budget created in console shows correct actual spend. - However, the Cloudformation created budget still shows `0.0`. I do not know what the heck is going on. Why do 2 completely same budgets show different actual spends is beyond me. We need to create our budgets as a part of our automation process, therefore the Cloudformation version needs to work as well. `describe-budget` output for Cloudformation created: ``` { "Budget": { "BudgetName": "StpSimpPimpBudgetingBudget-eu-west-1-1641575151342-uuJMy1qaNeii", "BudgetLimit": { "Amount": "10.0", "Unit": "USD" }, "CostFilters": { "TagKeyValue": [ "stp:globally-unique-stack-hash$7a66815" ] }, "CostTypes": { "IncludeTax": true, "IncludeSubscription": true, "UseBlended": false, "IncludeRefund": false, "IncludeCredit": false, "IncludeUpfront": true, "IncludeRecurring": true, "IncludeOtherSubscription": true, "IncludeSupport": true, "IncludeDiscount": true, "UseAmortized": false }, "TimeUnit": "MONTHLY", "TimePeriod": { "Start": 1640995200.0, "End": 3706473600.0 }, "CalculatedSpend": { "ActualSpend": { "Amount": "0.0", "Unit": "USD" } }, "BudgetType": "COST", "LastUpdatedTime": 1641742182.59 } } ``` `describe-budget` output for CONSOLE created: ``` { "Budget": { "BudgetName": "testbudget", "BudgetLimit": { "Amount": "10.0", "Unit": "USD" }, "CostFilters": { "TagKeyValue": [ "user:stp:globally-unique-stack-hash$7a66815" ] }, "CostTypes": { "IncludeTax": true, "IncludeSubscription": true, "UseBlended": false, "IncludeRefund": false, "IncludeCredit": false, "IncludeUpfront": true, "IncludeRecurring": true, "IncludeOtherSubscription": true, "IncludeSupport": true, "IncludeDiscount": true, "UseAmortized": false }, "TimeUnit": "MONTHLY", "TimePeriod": { "Start": 1640995200.0, "End": 3706473600.0 }, "CalculatedSpend": { "ActualSpend": { "Amount": "0.856", "Unit": "USD" } }, "BudgetType": "COST", "LastUpdatedTime": 1641742039.652 } } ```
1
answers
0
votes
23
views
asked 6 months ago

Examples of the Pricing and Cost Explorer API

Are there any examples for the **Pricing** and **Cost Explorer** API's? I've searched the documentation (including for Python) and looked at the source code <https://github.com/aws/aws-sdk-cpp> for any tests, but came up empty. My specific error is that I'm getting _incomplete type_ when declaring a variable of type `Aws::Pricing::Model::DescribeServicesOutcome` . Here is the error message ``` main.c: In function ‘int main(int, char**)’: main.c:39:33: error: invalid use of incomplete type ‘Aws::Pricing::Model::DescribeServicesOutcome {aka class Aws::Utils::Outcome<Aws::Pricing::Model::DescribeServicesResult, Aws::Client::AWSError<Aws::Pricing::PricingErrors> >}’ pricing.DescribeServices(req); ^ In file included from /path/to/include/aws/core/utils/crypto/Hash.h:19:0, from /path/to/include/aws/core/client/AWSClient.h:23, from /path/to/include/aws/core/monitoring/MonitoringManager.h:21, from /path/to/include/aws/core/Aws.h:22, from main.c:3: /path/to/include/aws/core/utils/crypto/HashResult.h:26:50: note: declaration of ‘Aws::Pricing::Model::DescribeServicesOutcome {aka class Aws::Utils::Outcome<Aws::Pricing::Model::DescribeServicesResult, Aws::Client::AWSError<Aws::Pricing::PricingErrors> >}’ template< typename R, typename E > class Outcome; ``` It seems that `DescribeServicesOutcome` , which should be defined in `typedef Aws::Utils::Outcome<DescribeServicesResult, Aws::Client::AWSError<PricingErrors>> DescribeServicesOutcome;` in `<aws/pricing/PricingClient.h>` is instead referring to `Outcome` in `/path/to/include/aws/core/utils/crypto/HashResult.h` . I've tried re-ordering the header files but that doesn't work. Edited by: dtsmith20010101 on Aug 29, 2019 11:11 AM
2
answers
0
votes
8
views
asked 3 years ago
  • 1
  • 90 / page