← 返回命令列表

Linux command

aws-cur 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List all report definitions

aws cur describe-report-definitions

Create a new cost and usage report

aws cur put-report-definition --report-definition ReportName=[my-report],TimeUnit=DAILY,Format=textORcsv,Compression=GZIP,S3Bucket=[my-bucket],S3Prefix=[reports/],S3Region=[us-east-1]

Delete a report definition

aws cur delete-report-definition --report-name [my-report]

Modify an existing report

aws cur modify-report-definition --report-name [my-report] --report-definition ReportName=[my-report],TimeUnit=HOURLY,Format=Parquet,Compression=Parquet,S3Bucket=[my-bucket],S3Prefix=[reports/],S3Region=[us-east-1]

List tags

aws cur list-tags-for-resource --resource-arn [arn:aws:cur:us-east-1:123456789012:definition/my-report]

说明

aws cur is the AWS CLI interface for AWS Cost and Usage Reports, enabling programmatic management of billing report definitions. Cost and Usage Reports provide comprehensive cost data about your AWS usage, delivered to an S3 bucket in CSV or Parquet format. Reports can be configured with different time granularities (hourly, daily, monthly) and include resource-level detail. The data can be integrated with analytics services like Athena, Redshift, or QuickSight for cost analysis.

FAQ

What is the aws-cur command used for?

aws cur is the AWS CLI interface for AWS Cost and Usage Reports, enabling programmatic management of billing report definitions. Cost and Usage Reports provide comprehensive cost data about your AWS usage, delivered to an S3 bucket in CSV or Parquet format. Reports can be configured with different time granularities (hourly, daily, monthly) and include resource-level detail. The data can be integrated with analytics services like Athena, Redshift, or QuickSight for cost analysis.

How do I run a basic aws-cur example?

Run `aws cur describe-report-definitions` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more aws-cur examples?

This page includes 5 examples for aws-cur, plus related commands for nearby Linux tasks.