Step 1
Login to AWS Console
Step 2
In the search field, type Cost and Usage Reports and click
Step 3
After the page is loaded, click on the button Create report
Step 4
Name your report, check to Include resource IDs and Refresh automatically boxes. Then click Next
You can enter any name but with our prefix. (Example: "psl-cur-{new-report}".)
The part in {bold} can be changed
Step 5
Click Configure
Step 6
Name S3 as psl-cur-%AWS-account-id% (paste your account ID instead of %AWS-account-id%), select the region where you want to save S3 bucket
Step 7
Check the box The following default policy will be applied to your bucket and click Save
โ
Step 8
Name S3 path prefix as psl-cur, and check Overwrite existing report Radio button. Then check Amazon Athena box and click Next
Step 9
Scroll to the bottom of the page and click Create Report
Step 10
โGo to IAM and navigate to Roles.
Step 11
You can look for your role using the search field and open the needed role.
Step 12
Find the policy which you created when adding an account and open it.
Step 13
Click on the Edit button.
Step 14
Instead of %bucket_name%/* enter your bucket name for the previous step. Add the ARN S3 bucket and click on the Next button.
{
"Effect": "Allow",
"Action": [
"s3:GetObject"
],
"Resource": "arn:aws:s3:::%bucket_name%/*"
}
Step 15
Review the policy and click on Save changes.
Step 16
You can see that the policy is updated.
Step 17
Return to Uniskai and start Refresh by pressing the button Refresh Now. After refresh, Cur will be added to your account.