Setting Up AWS for Claudia

This document guides you through the process of enabling AWS Cost & Usage reports for delivery to your S3 bucket, and creating the access credentials and policy so Claudia can access the report data.

When you complete these steps, go to Claudia setup to configure your application.

Step 1: Configure Destination S3 Bucket

    {
      "Version": "2008-10-17",
      "Id": "Policy1335892530063",
      "Statement": [
        {
          "Sid": "Stmt1335892150622",
          "Effect": "Allow",
          "Principal": {
            "AWS": "arn:aws:iam::386209384616:root"
          },
          "Action": [
            "s3:GetBucketAcl",
            "s3:GetBucketPolicy"
          ],
          "Resource": "arn:aws:s3:::example-billing-bucket"
        },
        {
          "Sid": "Stmt1335892526596",
          "Effect": "Allow",
          "Principal": {
            "AWS": "arn:aws:iam::386209384616:root"
          },
          "Action": [
            "s3:PutObject"
          ],
          "Resource": "arn:aws:s3:::example-billing-bucket/*"
        }
      ]
    }

Step 2: Enable Cost and Usage Reports

Create Report 1

Create Report 2

Create Report 3

After enabling the report for the first time, it will take up to 24 hours before the first report is delivered. AWS delivers new reports at least once a day.

Step 3: Create Policy for Claudia

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "s3:ListBucket",
                "s3:GetObject"
            ],
            "Resource": [
                "arn:aws:s3:::example-billing-bucket",
                "arn:aws:s3:::example-billing-bucket/*"
            ]
        },
        {
            "Effect": "Allow",
            "Action": [
                "ec2:DescribeImages"
            ],
            "Resource": [
                "*"
            ]
        }
    ]
}

Step 4: Create Claudia User & Access Credentials

Create Users

Attach Policy

Copy Credentials

Step 5: Enable Cost Allocation Tags (Optional)

AWS allows you to enable resource tags to appear in your Cost & Usage reports as additional columns in the report. Claudia automatically detects these tags and enables additional dimensions in the UI to group or filter by.

To enable resource tags in your billing report, go to the "Cost Allocation Tags" section in billing managment. Under this section, AWS provides an useful createdBy tag to track the creator of various resources. You can activate this tag with one click:

Enable createdBy Tag

You can also enable your own, user-defined cost allocation tags as shown below:

Enable User Tags