If your account is managed by an MSP and you don’t have access to the billing file, the MSP must complete the procedure in this article in order to retrieve the billing information. This procedure enables Cloud Analyzer to access your billing file and provide you with visibility into your cloud expenditures.

Cost and Usage Report Extraction Setup

There are three major steps to configuring the CUR Extraction:

1. Setup Cost And Usage Reports: This should be done from a root user account.

2. Link your Cost And Usage Report with Athena. This should be done from a root user account.

3. Setup the Cost And Usage Extractor.

Set up Cost And Usage Reports

1. Log in to your root AWS account, then click here.

2. Click “create report”.

3. Under the first “Report content” menu, do the following:

i. Enter a report name, name it “spotinst-cur-report”.

ii. Check the box that says “Include resource IDs”.

iii. Click “next”.

4. Under the second “Delivery options” menu, do the following:

i. Under “S3 bucket”, click “configure” then do the following:

a. Choose a name for the S3 bucket that CUR reports will be dumped into.

Remember the name you used as you’ll need it for the next step.

b. You may change the bucket’s region if you’d like but this isn’t necessary.

c. Click “next”.

d. Check the box that says “I have confirmed that this policy is correct”.

e. Click “save”.

ii. Under “report path prefix” enter: “spotinst_eco”.

iii. Under “Enable report data integration for”, check the box that says “Amazon Athena”.

iv. Click “next”.

v. Here’s what the review screen should look like:

vi. Scroll all the way down and click “review and complete”.

Link Your Cost And Usage Report With Athena

It will take 24 hours for AWS to start dropping reports into the S3 bucket you chose. Before proceeding with this step, click here and make sure that “Data last refreshed” has a date and doesn’t say “N/A”. Here’s what it should look like:

1. Click here, go to the S3 bucket you chose and navigate to:

“spotinst_eco/spotinst-cur-report”.

2. Click on the file called “crawler-cfn.yml”.

3. Copy the “Object Url” at the bottom as shown in the image below.

4. Click here and paste that object url into the field “Amazon S3 URL” as shown in the image below.

5. Click “next”.

6. Enter any stack name you’d like and click “next” again.

7. Scroll all the way down and click “next” again.

8. Scroll all the way down and under the “capabilities” section, check the box that says “I acknowledge that AWS CloudFormation might create IAM resources.”

9. Click “create stack”.

Set up Cost And Usage Extractor

1. Log into your AWS account, then contact support.

2. Click “next” at the bottom right of your screen.

3. We’ve already pre-filled some of the parameters, don’t worry about those. Fill in the following parameters:

i. Account List: You may leave this blank but if you’d only like to send Cost And

Usage reports for certain account numbers, enter them into this field separated by commas. Do not add spaces.

ii. Stack Name: You can set this to any name you’d like.

iii. CURBucketName: Set this to the name of the S3 bucket that you chose for Cost And Usage Reports to write to in the previous steps.

4. Click “next”.

5. Scroll all the way down and click “next” again.

6. Scroll all the way down and under the “capabilities” section, check the box that says “I acknowledge that AWS CloudFormation might create IAM resources.”

7. Here’s what the review screen should look like:

8. Click Create Stack.