Enabling Detailed Billing ReportsOur application uses the AWS Detailed Billing Report (DBR) to generate cost reports. After you create your cross-account access role, you must enable the DBR to ensure it is associated with the proper S3 bucket and it is accessible to CloudCheckr.
This procedure will show you how to enable the DBR in AWS.
- Login to the
AWS Billing Console.
You can also login to the AWS Management Console, go to the menu bar and right-click your account name, and select My Billing Dashboard from the fly-out menu.The Billing & Cost Management Dashboard opens.
- From the Dashboard, click Preferences. The Preferences page opens.
- Under the Cost Management Preferences section, select the Receive Billing Reports checkbox.
- To receive billing reports, you have to choose the S3 bucket where they will be stored. Type the name of an S3 bucket.
- From the AWS Management Console, select Storage > S3.
- Create an S3 bucket. See the AWS topic, Create a Bucket, for more information.
- Type the exact name of the new S3 bucket in the S3 Bucket text field.
- Click the sample policy link below the S3 Bucket text field. The Sample Policy dialog box opens.
- Copy the policy in the dialog box and click Close.
- From the top of the page, select Services and select S3 from the left side of the console.
- From the S3 list, click the name of the new S3 bucket.
- Click the Permissions tab.
- Click the Bucket Policy button. The Bucket Policy editor opens.
- Paste the sample policy that you copied into the editor.
- Click Save.
- Click Verify next to the S3 Bucket text field to validate that AWS saved the correct bucket policy. A green checkbox indicates that the bucket is configured correctly.
- On the Preferences page, scroll down to the Report section, and choose the billing reports that you would like to receive.
We highly recommend that you select Detailed billing report with resources and tags. If you only select Detailed billing report, the application will not be able to show your bill by resources.To get the most out of CloudCheckr, we recommend that you enable all reports.
- Click Save preferences.
Changing the S3 BucketIf you decide at later date that you want to use a different S3 bucket to collect the DBR information from AWS, follow these steps:
- In AWS, identify or create an S3 bucket where you want the DBR to be stored.
- Make sure that CloudCheckr has permissions to access this bucket.
- Launch CloudCheckr.
- From the left navigation pane, choose Account Settings > Detailed Billing Bucket. The Edit Detailed Billing Bucket page opens.
- In the S3 Bucket section, replace the name of the existing S3 bucket with the exact name of the new S3 bucket.