1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/aws-ce.md
debghs 7b50678090
aws-ce: update page (#13745)
* aws-ce:update page

* aws-ce:update page
2024-09-19 06:05:22 +02:00

36 lines
1.2 KiB
Markdown

# aws ce
> Run cost management operations through the AWS Cost Explorer service.
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ce/index.html>.
- Create anomaly monitor:
`aws ce create-anomaly-monitor --monitor {{monitor_name}} --monitor-type {{monitor_type}}`
- Create anomaly subscription:
`aws ce create-anomaly-subscription --subscription {{subscription_name}} --monitor-arn {{monitor_arn}} --subscribers {{subscribers}}`
- Get anomalies:
`aws ce get-anomalies --monitor-arn {{monitor_arn}} --start-time {{start_time}} --end-time {{end_time}}`
- Get cost and usage:
`aws ce get-cost-and-usage --time-period {{start_date}}/{{end_date}} --granularity {{granularity}} --metrics {{metrics}}`
- Get cost forecast:
`aws ce get-cost-forecast --time-period {{start_date}}/{{end_date}} --granularity {{granularity}} --metric {{metric}}`
- Get reservation utilization:
`aws ce get-reservation-utilization --time-period {{start_date}}/{{end_date}} --granularity {{granularity}}`
- List cost category definitions:
`aws ce list-cost-category-definitions`
- Tag resource:
`aws ce tag-resource --resource-arn {{resource_arn}} --tags {{tags}}`