Questions tagged with AWS Cost and Usage Report

Content language: English

Sort by most recent

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
466
views
asked 10 months ago

How to define a Cost Category with additional logical operators such as NOT and OR besides AND

The [General AWS Cost Categories FAQs](https://aws.amazon.com/aws-cost-management/aws-cost-categories/faqs/) and documentation mention that using the JSON Editor in the Cost Category creation Console, one can > define a Cost Category with additional logical operators such as NOT and OR besides AND But I can not find any example and my attempts all lead to errors being flagged in the JSON editor. Would love to find some examples of how to specify the OR of several Tags. The [CostCategoryRule](https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_CostCategoryRule.html) says `Root level OR isn't supported. We recommend that you create a separate rule instead.` But I have no idea how one could create a separate rule that would do what I need. What I would like to do is the following, but it currently gives me the error `Failed to create Cost Category: Expression cannot contain OR on root level`: ``` { "RuleVersion": "CostCategoryExpression.v1", "Rules": [ { "Type": "REGULAR", "Value": "production-001", "Rule": { "Or": [ { "Tags": { "Key": "Environnment", "Values": [ "prod" ], "MatchOptions": [ "EQUALS" ] } }, { "Tags": { "Key": "Environment", "Values": [ "prod" ], "MatchOptions": [ "EQUALS" ] } }, { "Tags": { "Key": "TerraformWorkspace", "Values": [ "prod" ], "MatchOptions": [ "CONTAINS" ] } }, { "Tags": { "Key": "aws:ecs:clusterName", "Values": [ "prod" ], "MatchOptions": [ "CONTAINS" ] } } ] } } ] } ```
1
answers
0
votes
54
views
rberger
asked 10 months ago