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.

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
14
views
Diogo Kollross
asked 3 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
7
views
simon
asked 4 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
0
views
dtsmith20010101
asked 3 years ago
  • 1
  • 90 / page