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

Questions tagged with AWS Cost Categories

Sort by most recent
  • 1
  • 12 / page

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

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
44
views
asked 8 months ago

Budgeting for Split Costs

I'm trying and failing to get a budget to use the Total Allocated Cost for a Cost Category Value. I've read the documentation and as far as I can tell this is not supported? I think I'm SOL but I wanted to check here before I gave up. I'll explain what I'm trying to do below. I've set up cost categories for each project with rules for each environment with an example below. I have three additional rules letting me split some costs that are shared between environments. Now I want to apply a budget to get alerts when the dev environment (or any environment for that matter) exceeds its budget. But the split costs are not reflected outside the Cost Categories Overview. As far as the budget console is concerned dev is only costing $19.61 a month, it is completely ignoring the additional costs coming in from the split. Is there anyway to get budget alerts on the total allocated cost for the P1-Dev Value? P1-Cost-Catigory | Value | Cost | Split Charge | Total Allocated Cost | | --- | --- | --- | --- | | P1-Test | $25.31 | $367.98 | $393.30 | | P1-Dev | $19.61 | $367.98 | $387.60 | | P1-Production | $222.90 | $133.26 | $356.16 | | P1-Acceptance | $177.60 | $133.26 | $310.86 | | P1-Shared-All (Split charge) | $533.05 | $0.00 | $0.00 | | P1-Dev-Test (Split charge) | $469.44 | $0.00 | $0.00 | | P1-Acpt-Prod (Split charge) | $0.00 | $0.00 | $0.00 | Seems odd that I can't get the budget to respect the totals.. is there an obvious work around that I'm to new to see?
1
answers
0
votes
23
views
asked 9 months ago
  • 1
  • 12 / page