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

37 lines
1.2 KiB
Markdown
Raw Normal View History

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