杵状指见于什么病| 淋巴细胞是什么意思| 升学宴选什么日子好| 贻笑大方什么意思| 空窗期是什么| 吃什么补充维生素b6| 感冒发烧可以吃什么水果| 肚脐眼发炎是什么原因| 俗不可耐是什么意思| 智商140是什么水平| 林彪什么时候死的| 避孕环是什么样子图片| 胆红素是什么意思| 湿疹是什么皮肤病| 氯化钾主治什么病| 七月五日是什么星座| 鹦鹉吃什么蔬菜| 七情六欲指什么| 手指有痣代表什么意思| 什么是债权| 女生下边长痘痘是什么病| 四大神兽是什么动物| 康五行属什么| 怀孕的肚子是什么样的| 用盐洗脸有什么好处| 一个火一个同念什么| 广西有什么水果| 见血是什么兆头| 中耳炎吃什么药效果比较好| 磨破皮了涂什么药| 血小板为什么会减少| 男人梦到掉牙什么预兆| 孕激素六项检查什么时候做| 开心水是什么| 什么蔬菜| 男人肾虚吃什么补得快| 做活检是什么意思| 最亮的星星是什么星| 双鱼座和什么座最配对| 心肌标志物是查什么的| 菱角是什么| 法图麦在回族什么意思| 西四命是什么意思| 懵懵懂懂是什么意思| 这是什么电影| 荨麻疹不能吃什么| gbd是什么意思| 耿耿于怀什么意思| 胃不舒服吃什么水果好| 人活着到底是为了什么| 鱼喜欢吃什么食物| pacu是什么意思| 什么是穴位| 梦见儿子小时候是什么意思| 哈密瓜为什么叫哈密瓜| 大便粘稠是什么原因| 胃烧灼感是什么原因| iga肾病是什么意思| 后脑勺疼痛什么原因引起的| 远山含黛是什么意思| 苏轼是什么派词人| 小腿肌肉抽筋是什么原因引起的| 高血糖吃什么降得快| 醋泡花生米有什么功效| 检查乙肝挂什么科| 主动脉硬化什么意思| 复试一般会问什么问题| 脚底干裂起硬皮是什么原因怎么治| 阉人什么意思| 突然头疼是什么原因| 禀报是什么意思| 处女座属于什么星象| 右肾盂分离是什么意思| 黄色分泌物是什么原因| bmi是什么| plcc是什么意思| 哈萨克斯坦是什么人种| 游戏hp是什么意思| 什么是卵巢囊肿| 生理期提前是什么原因| 儿童查微量元素挂什么科| beetle是什么车| 脚肿吃什么药消肿| 什么是增强ct| 冬瓜有什么功效和作用| 变态反应是什么意思| gopro是什么| 吕洞宾属什么生肖| 什么中药治肝病最好| 爱是什么| 胸口中间疼挂什么科| helen是什么意思| 甘肃有什么好吃的| ct 是什么| 瞳孔缩小意味着什么| 痛风是什么病| 雨对什么字| 1926年属什么| 身上发冷是什么原因| eu是什么元素| 天蝎座女生配什么星座| 宝宝吃什么奶粉好| 白醋泡脚有什么功效| 什么有所什么| 思觉失调是什么意思| 肌酐偏低有什么危害| 什么叫因果| 开封古代叫什么| 什么得直什么| 皮蛋吃多了有什么危害| 肠易激综合症什么症状| 属鼠的贵人是什么属相| 什么是u| 皮肤瘙痒是什么病的前兆| 百草枯什么味道| 青枝骨折属于什么骨折| 胆结石能吃什么| ahc是韩国什么档次| 木舌是什么字| 乳酸杆菌大量是什么意思| 胆固醇高是什么| 管理的本质是什么| 屈打成招是什么意思| 花生不能和什么食物一起吃| hrd是什么| 骨骺是什么意思| 纯钛对人体有什么好处| 紫花地丁有什么功效| hpv是什么东西| 弱水三千什么意思| 老公护着婆婆说明什么| 张属于五行属什么| 尿道发炎吃什么药| 资产负债率高说明什么| 人各有命是什么意思| 年轮稀疏的一面是什么方向| 糯米粉做什么好吃| 6月20号是什么星座| 瘿病是什么病| 大便里急后重什么意思| 什么可以补气血| 吃土豆有什么好处和坏处| 结石有什么症状| 正品行货是什么意思| 过命之交是什么意思| 探望是什么意思| 羊和什么生肖最配| 郎酒是什么香型| 什么中药补气血效果最好| 阻生牙是什么意思| 无花果有什么功效| 经常上火口腔溃疡是什么原因| 圈癣是什么引起的| 为什么晚上不能照镜子| 神经损伤是什么症状| 丹参长什么样子图片| 做梦梦到鸡是什么意思| 犯贱是什么意思| 又什么又什么的草地| 腺肌症吃什么药效果好| 胃寒能吃什么水果| ky什么意思| 肝内囊性灶什么意思| 属猴的是什么星座| 血脂高可以吃什么水果| dvd是什么意思| 陈皮是什么水果的皮| 小便白细胞高是什么原因| 长宽高用什么字母表示| 智齿发炎是什么原因| 非你莫属是什么意思| 怎么知道自己五行缺什么| 一什么花瓣| luky是什么意思| 龟头炎的症状是什么样| 做梦掉牙齿是什么预兆| 乳腺病是什么意思| 锁骨是什么骨| 嘴苦是什么原因| 增生是什么意思| 玉米须能治什么病| 诬赖是什么意思| 解神是什么意思| 脱盐乳清粉是什么| 合欢是什么意思| 四十年婚姻是什么婚| 翠绿色配什么颜色好看| 叶酸什么时候吃| epc什么意思| 南辕北辙的意思是什么| 什么时候满月| 信徒什么意思| 谷丙转氨酶是什么意思| 四月二十是什么星座| 1988是什么年| 早上起来眼睛肿是什么原因| 十羊九不全是什么意思| 天生一对成伴侣是什么生肖| 宠物蛇吃什么| td代表什么意思| 2020年是什么年| 幻听是什么原因| 什么是脚气| 小猫为什么会踩奶| 怀孕该吃什么补充营养| 口臭是什么引起的| 为什么医院开的钙都是碳酸钙| 为什么耳朵会痛| 什么叫脂肪瘤| 吃鹅蛋有什么好处| 瘰疬是什么意思| 袁崇焕为什么被杀| 杏鲍菇炒什么好吃| 痴男怨女是什么意思| 鬼画符是什么意思| 相濡以沫不如相忘于江湖是什么意思| 什么东西进去是硬的出来是软的| 心代表什么数字| 95年属什么| 睾丸扭转是什么导致的| dikang是什么药| 麦芽是什么| 化疗是什么样的过程| 毛尖属于什么茶| 七夕之夜是什么生肖| 93年是什么年| 被孤立的一般是什么人| 过度紧张会有什么症状| 心跳太快吃什么药| 五味指的是什么| 查怀孕挂什么科| 什么是认知障碍| 血小板低是什么原因| 小腹坠胀是什么原因| 喝什么解渴| 脑宁又叫什么名字| 贫血严重有什么症状| 湿疹不能吃什么| a是什么单位| 玫瑰什么时候开花| 胃酸吃什么可以缓解| 母亲节一般送什么礼物| 滥情什么意思| 扑尔敏又叫什么| 小孩牙疼吃什么药| 何弃疗是什么意思| 血常规用什么颜色的试管| 什么鬼大家都喜欢| 藩王是什么意思| 子息克乏是什么意思| 前置是什么意思| 香薰是什么| 斜杠青年什么意思| 为什么射不出来| 小孩子发烧手脚冰凉是什么原因| 腹泻吃什么水果好| 平板支撑是什么| 二脚趾比大脚趾长代表什么| 渗透压低是什么意思| eu是什么元素| 什么繁什么茂| a型血和b型血生的孩子是什么血型| 为什么突然有狐臭了| 忌神是什么意思| 百度
AWS Cost and Usage Report Setup
AWS Cost and Usage Report Documentation

This Cost and Usage Report overview will go through the required IAM permissions for billing analysis, how to create a cost and usage report (CUR), and how to set up a local analysis environment using SQLite3.

If you have questions, feedback, or other AWS Billing problems you’d like to discuss, you can?contact our team.

IAM Permissions

Identity and Access Management (IAM) permissions get complicated very quickly. The advantage of using Sqlite3 and doing local analysis is minimizing permissions and access needed in your AWS Account. The best way to track access to billing is to create an IAM role for engineers with access to billing information. The IAM permissions below practice the ‘least privilege principle’ for anyone in your engineering team that needs to perform billing analysis.

First, this policy allows users to access the billing console and create, modify or delete CURs.

{
  "Version": "2025-08-06",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "aws-portal:ViewUsage",
        "aws-portal:ViewBilling",
        "cur:DescribeReportDefinitions",
        "cur:PutReportDefinition",
        "cur:DeleteReportDefinition",
        "cur:ModifyReportDefinition"
      ],
      "Resource": "*"
    }
  ]
}

Second, these are the permissions to list S3 buckets and download CUR files for analysis. Depending on the resources in the account, it may make sense to limit the resources this policy provides access to.

{
    "Version": "2025-08-06",
    "Statement": [
      {
        "Effect": "Allow",
        "Action": [
          "s3:GetBucketPolicyStatus",
          "s3:GetBucketTagging",
          "s3:ListBucketVersions",
          "s3:PutBucketOwnershipControls",
          "s3:CreateBucket",
          "s3:ListBucket",
          "s3:GetBucketAcl",
          "s3:GetBucketPolicy",
          "s3:GetObjectAcl",
          "s3:GetObject",
          "s3:GetAccountPublicAccessBlock",
          "s3:ListAllMyBuckets",
          "s3:PutBucketPolicy",
          "s3:GetBucketLocation",
          "s3:GetObjectVersion"
         ],
         "Resource": "*"
        }
    ]
}

Cost and Usage Report Documentation

As part of the Developer’s Guide to AWS Costs, we have added a?Cost and Usage Report Documentation?blog post to our website. For the over 200 fields in the Cost and Usage Report, this document will describe the field and provide sample values to help developers analyze their specific use cases.

This document is always a work in progress. If there are questions or comments on the information in the documentation, please let us know in our?GitHub Discussions!

Creating a Cost and Usage Report

As noted in the introduction, the main data source used for cost analysis is the Cost and Usage Report (CUR). This is the most detailed billing report offered by AWS and is the ‘source of truth’ for what your account is being charged at the end of the month.

The following steps will walk through how to create a new Cost and Usage Report:

  • Navigating to the billing console.
  • Selecting data and storage options.
  • Verifying that the report was created properly.

Step 1:?Navigate to the Billing Console

First, go to?aws.amazon.com?and?click Sign In?in the top right corner.

Setup 1

Step 2: Log in to AWS

Enter your Account ID, IAM user name, and password. If you don’t have MFA set up for your account, you should. MFA is the best way to make sure?your account doesn’t get hacked. Then?click Sign In.

Not which account is being used. First, engineers should understand how AWS Organizations impact your CUR. Management and member accounts of an organization can each have their own CUR enabled. Management accounts with a CUR will show details for the management account and all member accounts in the organization, while a member account with a CUR will only show details for that account.

As an engineer, it is important to understand whether it is necessary to see costs in a specific account or across all your accounts. Second, ensure the account being used is covered in the IAM permissions for the newly created IAM role.

Setup 2

Step 3: Search for Billing

At the top of the AWS Management Console, in the search bar,?search for billing?and?click on Billing?under Services in the search results. This will bring you to the AWS Billing Dashboard.

Setup 3

Step 4: Navigate to the ‘Cost & Usage Reports’ Page

Once on the AWS Billing Dashboard,?click Cost & Usage Reports in the left banner.

Setup 4

Step 5: Create a new Cost and Usage Report

This page will show you all the active CURs in your account and give users the ability to create a new report. For this demo account there are no active CURs. To create a new CUR,?click on the blue Create Report button.

Setup 5

Step 6: Report Content

On the?‘Report Content’?page,?choose a report name?(I chose ‘diy-biling’),?check the box to Include resource IDs, and?click Next.

Checking the box next to?Include resource IDs?will add a field to the CUR that will show a unique resource ID for all resources active in your environment. This will make the report much larger, but the level of detail is crucial to understanding how resource usage impacts cost.

Setup 6

Step 7: Storage Options

On the?Delivery Options?page, users determine the granularity of the data collected, where the CUR will be stored, and how the data will be stored.

All CUR reports are delivered to an S3 bucket. You must decide whether to create a new S3 bucket or use an existing bucket (both options are included in the IAM permissions provided in this guide). To open the?S3 bucket?menu,?click on Configure.

Setup 7

Step 7a: Setup Delivery to Existing S3 Bucket

The left side of the?Configure S3 Bucket?menu is where users can?Select an existing bucket.

To?Select an existing bucket, click the dropdown below?S3 bucket name,?select the bucket you’d like the CUR to be delivered to,?and then?click Next. This example uses a bucket called?‘macroscope-diy-billing’ that was previously created.

Setup 8

Step 7b: Setup Delivery to a New S3 Bucket

To?Create a Bucket, on the right side of the?Configure?screen,?enter a unique S3 bucket name,?select your Region,?and then?click Next.

Setup 9

Step 8: Confirm S3 Bucket Policy

Whether you selected an existing bucket or created a new bucket, the next screen will ask you to verify the policy should be applied to your bucket. If you are selecting an existing bucket, this policy will overwrite the existing one.?Check the box next to ‘I have confirmed that this policy is correct’?and?click Save.

Setup 10

Step 9: Other Delivery Options

After clicking?Save, you will be returned to the?Delivery Options?page. Here you should see that the existing S3 bucket you chose or the new S3 bucket you created is a?Valid Bucket.

Next,?choose a Report path prefix?(this example uses?‘cur’), leave all other settings as the default, and then?click Next.

Setup 11

Step 10: Review and Complete

On the?Review?page,?review the details for Report Content and Delivery Options. Once comfortable with the data,?scroll to the bottom of the page and click Review and Complete.

Setup 12

After clicking?Review and Complete?you will be brought back to the?AWS Cost and Usage Reports?page. If everything was successful, you will see a?Report created successfully?banner on the top of the screen.

Next Step

The Cost and Usage Report has been created and the report status has been confirmed. The next step is to go through the steps of Downloading a CUR file for local SQL analysis.

Downloading CUR Files

After creating a Cost and Usage Report, it will take approximately 24 hours for the first version of our report to be sent to S3. Once a report has been saved, data can be downloaded and used for analysis.

Based on how the CUR was created, a new version of the CUR is saved into S3 every day with cumulative data for the month. This report versioning was enabled in case there are updates to historical billing data, and the reports need to be compared. To order to get the most up-to-date cost information, download the most recent file for each month.

Step 1. Go to aws.amazon.com

First, go to?aws.amazon.com?and?click sign in?in the top right corner.

Setup 13

Step 2: Log in to AWS

Enter your Account ID, IAM user name, and password. Then?click Sign In. Make sure this is the account where the CUR was created.

Setup 14

Step 3: Search for S3

From the AWS Management Console, in the search bar, search for?s3?and?click on S3?to go to the S3 Console.

Setup 15

Step 4: Select the S3 Bucket

Select the S3 bucket?where your CUR is stored. If there are many S3 buckets in the account, use the search bar that says?filter buckets by name.

Setup 16

Step 5: Navigate to Path Prefix of the CUR

Once you have selected your S3 bucket,?navigate the folders to the path prefix?where your CUR is stored. The screenshot below shows that my path prefix is outlined at the top of the screen. This path prefix will contain folders for each month with an active CUR.?Select the most recent month?to open that folder.

Setup 17

Step 6: Select the Most Recent CUR Version

In the folder for the most recent month, there will be a folder for every day of the month where a CUR has been saved. To find the most recent version,?scroll to the bottom of the page and open the most recent folder. This should be the second-to-last item in the folder. The last file is a JSON manifest that does not help us right now.

Setup 18

Step 7: Download the CUR CSV

In this folder, you will see at least one?%.csv.gz?file. This file is a compressed version of your Cost and Usage Report. To download this file,?select the checkbox to the left of the file name, then?select the Actions drop-down in the Objects menu?and?click Download as.

If there are multiple?%.csv.gz?files in this folder, all of them will need to be downloaded to get the full bill.

Setup 19

Step 8: Download to Desktop

This will open the?Download as?window. Follow the instructions on the dialog box:?right-click the link below,?choose Save Link as…?and?save the file to the location of your choice.

Setup 20

In this example, the CUR was saved as ‘macroscope-diy-billing-00001.csv.gz’ on the desktop. Make sure to?un-zip your CUR files?prior to beginning analysis.

Setup 21

Next Steps

With the CUR file downloaded, the last step is to set up a local development environment using SQLite3 to analyze the CUR report contents.

SQLite3

The first step for local analysis is to?download SQLite3. The following steps will show how to get started with SQLite3, assuming you’ve installed SQLite3.

Before moving forward, here is some important information about this demo:

  • These instructions were created using a Mac.
  • CUR file name:?macroscope-diy-billing-00001.csv
  • CUR directory is /Desktop

Step 1: Open a terminal

This example uses the default mac Terminal.

Setup 22

Step 2: Navigate to your CUR Directory

Based on the CUR directory for this demo, the command to navigate to the CUR Directory is?cd Desktop.

Setup 23

Step 3: Start SQLite3

Run the command?‘sqlite3’?to start SQLite3

Setup 24

Step 4: Set Mode & Import

Run the command?.mode csv?to enable SQLite3 to read .csv files. Then?import your CUR file using the?.import?command.

This demo imports the file ‘macroscope-diy-billing-00001.csv’ as a table called ‘diybilling’.

Setup 25

Step 5: Run a Test Query

Once the table has been imported, run a sample query to see if any results are returned. The sample query used in this demo is below.

select * from diybilling limit 1

?

AWS Cost and Usage Report Setup
Older post

AWS Cost and Usage Report Documentation

The Cost and Usage Report is the standard report from AWS for customers to understand and manage their costs. TheCost and Usage Report drives most cloud cost management tools, including AWS Cost Explorer. This documentation will outline the essential fields in the Cost and Usage Report, explain how those fields can be used for cloud cost management, and provide sample values users can use to build queries based on usage in their accounts.

Newer post

AWS Cost Analysis - Amazon EC2 Costs

Elastic Compute Cloud (EC2) is the backbone of AWS. EC2 allows customers to access hundreds of different instance types across the globe in seconds.

AWS Cost and Usage Report Setup
鸡胸是什么 今天生肖冲什么 鸡咳嗽吃什么药 学生吃什么补脑子增强记忆力最快 芹菜和什么菜搭配最好
尿检ph值偏高说明什么 10月28日什么星座 减肥晚上吃什么合适 12月18号是什么星座 什么是比例
西瓜为什么是红色的 什么是漏斗胸 午夜梦回是什么意思 阴虚火旺喝什么茶好 附带是什么意思
散光是什么意思 低压低是什么原因 单方精油和复方精油有什么区别 高血糖吃什么食物 graves病是什么病
什么是沙龙hcv8jop6ns0r.cn 破屋坏垣适合干什么hcv9jop1ns7r.cn 抗链o高是什么原因hcv8jop2ns0r.cn 一岁宝宝口臭是什么原因引起的hcv9jop0ns9r.cn 华语是什么语言hcv8jop3ns7r.cn
花菜炒什么好吃hcv9jop5ns8r.cn 检察院是干什么的hcv9jop1ns8r.cn 太后是皇上的什么人gysmod.com 银芽是什么菜hcv8jop2ns6r.cn 喉咙长溃疡是什么原因hcv9jop2ns0r.cn
什么是阴沉木hcv9jop2ns8r.cn 为什么一直拉肚子hcv8jop4ns9r.cn 2018年生肖属什么hcv8jop7ns4r.cn 喝什么最解渴hcv9jop4ns9r.cn 多巴胺是什么意思hcv8jop6ns0r.cn
束脚裤配什么鞋子hcv8jop6ns0r.cn 女性肾虚是什么原因导致的hcv9jop5ns1r.cn 8月14日是什么星座hcv9jop1ns3r.cn 中药一般什么时候喝最好hcv9jop8ns2r.cn 什么情况下要割包皮hcv9jop3ns9r.cn
百度