Difference between revisions of "Filters.json"

From wikieduonline
Jump to navigation Jump to search
Line 11: Line 11:
 
One line:
 
One line:
 
  { "Dimensions": { "Key": "SERVICE", "Values": ["Amazon Simple Storage Service"]}}
 
  { "Dimensions": { "Key": "SERVICE", "Values": ["Amazon Simple Storage Service"]}}
 +
 +
 +
[[aws ce get-cost-and-usage]] --time-period Start=2020-06-01,End=2020-06-30 --granularity MONTHLY --metrics "BlendedCost" "UnblendedCost" "UsageQuantity" --group-by Type=DIMENSION,Key=SERVICE Type=TAG,Key=Environment --filter file://filters.json

Revision as of 14:47, 14 November 2021

{
    "Dimensions": {
        "Key": "SERVICE",
        "Values": [
            "Amazon Simple Storage Service"
        ]
    }
}

One line:

{ "Dimensions": { "Key": "SERVICE", "Values": ["Amazon Simple Storage Service"]}}


aws ce get-cost-and-usage --time-period Start=2020-06-01,End=2020-06-30 --granularity MONTHLY --metrics "BlendedCost" "UnblendedCost" "UsageQuantity" --group-by Type=DIMENSION,Key=SERVICE Type=TAG,Key=Environment --filter file://filters.json

Advertising: