AWS
What Plutus imports
Section titled “What Plutus imports”- Spend by service, region, account and usage type (from a CUR 2.0 Data Export)
- Reservation & Savings Plan utilization
- Rightsizing & idle-resource recommendations
- Resource-level cost, e.g. a specific EC2 instance or S3 bucket (optional, paid plans)
Connecting
Section titled “Connecting”Method: IAM Role (cross-account)
All AWS cost comes from one CUR 2.0 Data Export (Parquet, delivered to S3). Cost Explorer is no longer a cost source. Plutus still calls it for rightsizing, Savings Plan and Reserved Instance recommendations, and commitment utilization.
- In Plutus, go to Sources, open the Cost tab, and select AWS. In the connection form, copy the External ID and Plutus Account ID shown in the Role Setup panel. The cross-account role needs both.
- In each AWS account you want to connect, deploy the
PlutusCostReaderIAM role using the Terraform module or CloudFormation template linked from that panel. The role is read-only. Its trust policy has two statements, both on the Plutus account ID and limited to Plutus’s sync roles (plutus-sync-*): one allowssts:AssumeRoleand requires the External ID, the other allowssts:SetSourceIdentityandsts:TagSession. If you paste the trust policy yourself, include both. - Connecting an AWS Organization? Deploy
PlutusCostReaderin the management account, and connect that role. Spend for every member account already arrives through the management account’s export. To also inventory the member accounts, see Member accounts in an Organization. - Copy the Role ARN of the deployed role and paste it into the Role ARN field.
- In AWS, go to Billing and Cost Management → Data exports → Create. Choose Standard data export with CUR 2.0 as the table.
- Set Time granularity to Hourly and Format to Parquet. Leave Overwrite existing data export file on.
- On paid plans, also turn on Include resource IDs and Include split cost allocation data. Neither option can be added to an existing export. Resource-level cost needs resource IDs. The EKS breakdown needs split cost allocation data. If you skip them now, create a new export later.
- Choose the S3 bucket and prefix the export writes to. Create the export.
- Give the
PlutusCostReaderroles3:GetObjectands3:ListBucketon that bucket. In the Terraform module, setbilling_export_bucket. In the CloudFormation template, set theBillingExportBucketparameter. The bucket policy is opt-in and off by default. The module can also create the export for you. - In Plutus, enter the bucket name in Cost Export S3 Bucket. Enter the Cost Export Prefix and Cost Export Bucket Region if they aren’t the root of the bucket and
us-east-1. - In each account, go to Billing → Cost Explorer and enable Cost Explorer if it isn’t already. Rightsizing and commitment recommendations read it.
- Optional: cost allocation tags. To build cost-tag rules from your own AWS tags, activate a tag key under Billing → Cost allocation tags, then enter that key in the Cost Allocation Tag Key field.
- Optional: emissions tracking. Create a carbon emissions data export (Billing → Data Exports) delivering CSV to S3, grant the
PlutusCostReaderroles3:GetObjectands3:ListBucketon that bucket, and enter the bucket name (and prefix/region, if not the default) in the Carbon Export fields. Emissions data is published monthly and lags roughly a quarter, so expect the first few months to be empty.
Trust policy and role updates
Section titled “Trust policy and role updates”Plutus signs in with a source identity and session tags, and AWS checks sts:SetSourceIdentity and sts:TagSession against the role’s trust policy separately from sts:AssumeRole. The External ID condition applies to sts:AssumeRole only, so those two actions sit in their own statement without it. A role created with an older template has a single statement and fails the sync with an access-denied error that names sts:SetSourceIdentity or sts:TagSession. Re-apply the current Terraform module or CloudFormation template to the account (or update the stack, or the StackSet for an Organization) to fix it. The External ID and Role ARN stay the same, so nothing changes in Plutus.
Commitment-expiration alerts read each Reserved Instance’s and Savings Plan’s own end date, which needs two permissions — ec2:DescribeReservedInstances and savingsplans:DescribeSavingsPlans — that a PlutusCostReader role deployed before that feature shipped doesn’t carry. Re-apply the current Terraform module or CloudFormation template to add them. Until you do, cost sync and commitment utilization are unaffected; only the expiration alerts stay silent. See Savings & optimization.
Member accounts in an Organization
Section titled “Member accounts in an Organization”Connecting the management account gives Plutus spend for every linked account. Resource inventory, utilization, findings and automated fixes for the member accounts need a read-only role in each one.
- Deploy
PlutusCostReaderin the management account and paste its Role ARN. The role’sorganizations-readpolicy (organizations:ListAccounts,organizations:DescribeOrganization) lets Plutus list the organization’s accounts. The Terraform module and CloudFormation template include it by default (ReadOrganizationin the template). Set it to false for a role that is not in the management account. - In the management account, enable trusted access for CloudFormation StackSets.
- Create a service-managed StackSet from the member template, which the Role Setup panel offers as a download. Turn on automatic deployment, target the organization root or the organizational units you choose, use one region, and use the same External ID as the management role. New accounts then get the role on their own.
- Wait for the next AWS sync. Plutus lists the accounts, assumes
PlutusCostReaderin each one, and starts inventorying it.
The member role has twelve actions, all Describe, Get or List. It has no Cost Explorer, billing,
Health or S3 access. Plutus assumes it by the name PlutusCostReader, so a custom role name isn’t
supported.
A Member accounts panel on the AWS source shows “7 of 12 accounts readable” and a status for each account. It appears only where member-account inventory is turned on for your account and Plutus has found accounts, so contact support if you expect it and don’t see it.
| Status | Meaning and fix |
|---|---|
| Readable | Plutus assumed the role and inventories the account. |
| Role missing | The role isn’t in the account. Deploy the member template there. The StackSet does this for every account in the organization. |
| Access denied | An organization policy blocks the role. Allow sts:AssumeRole on role/PlutusCostReader* from the Plutus account in the service control policy or resource control policy. |
| Suspended | AWS reports the account as suspended or pending closure, so Plutus doesn’t read it. |
| Excluded | You excluded the account. |
| Not checked yet | Plutus checks every account on its next AWS sync. |
AWS words a missing role and a trust policy that doesn’t name Plutus the same way, so the error text shown under an account may not say which one it is. A temporary failure keeps the previous status.
Anyone who can manage the source can exclude any account except the connected one, with the switch beside it. Excluding deletes that account’s inventory rows. Including it again brings them back on the next sync. Plutus stores only each account’s ID, name and status, never its email address.
How a sync covers the accounts:
- Each sync inventories at most 25 accounts, the least recently inventoried first, so a large organization takes several syncs to complete a round.
- Each account is read separately. A failure in one doesn’t stop the others.
- An account that leaves the organization’s account list is deleted from Plutus with its inventory.
- Findings and pull requests name the AWS account the resource is in.
Resource inventory permissions
Section titled “Resource inventory permissions”The PlutusCostReader role’s inventory permissions let Plutus find idle and misconfigured resources. They read the configuration of EC2, load balancers, CloudWatch log groups, RDS, DynamoDB, S3 buckets and ECR repositories, plus AWS Cost Optimization Hub’s recommendations. Every action is a Describe, List or Get of configuration. Plutus can’t create, modify or delete anything, and never reads log events, objects, table items or Lambda environment variables.
Beyond the EC2 and Elastic Load Balancing Describe* actions the role already had, it now holds:
| Actions | What Plutus reads |
|---|---|
logs:DescribeLogGroups |
Log group settings, such as retention |
rds:DescribeDBInstances |
Database instance settings, such as Multi-AZ |
dynamodb:ListTables, dynamodb:DescribeTable |
Table settings, such as table class |
s3:ListAllMyBuckets, s3:GetLifecycleConfiguration |
Bucket names and lifecycle rules |
ecr:DescribeRepositories, ecr:GetLifecyclePolicy |
Repositories and their lifecycle policies |
cost-optimization-hub:ListEnrollmentStatuses, cost-optimization-hub:ListRecommendations, cost-optimization-hub:GetRecommendation |
Cost Optimization Hub’s recommendations, including Lambda memory sizes |
The role doesn’t include lambda:ListFunctions, because it returns each function’s environment variables, which often hold secrets. Lambda memory sizes come from Cost Optimization Hub instead, so a function appears in Plutus only while the hub recommends a new memory size for it. Cost Optimization Hub is opt-in: if the account isn’t enrolled, Plutus reads no hub recommendations and reports no error.
A role deployed before these actions were added doesn’t have them. Re-apply the current Terraform module, or update the CloudFormation stack (or StackSet), to pick them up. Until you do, nothing breaks: each call the role isn’t allowed to make fails on its own, cost sync carries on as before, and only the findings that need that read are missing. The External ID and Role ARN stay the same.
These actions are on the PlutusCostReader role you connect. The member account role is unchanged.
Optional role policies
Section titled “Optional role policies”Two policies on the PlutusCostReader role are optional. Each unlocks one extra feature, and
cost sync works without them.
billing-credits-read(billing:GetCredits,billing:GetCreditAllocationHistory): reads your AWS credit balances for Credits and runway. Without it, the Credits page shows a “no permission” state.cloudwatch-bedrock-read(cloudwatch:GetMetricData,cloudwatch:ListMetrics): reads hourly Bedrock token counts from CloudWatch. Without it, there are no hourly Bedrock figures.
The Terraform module and the CloudFormation template both include these policies. A role deployed before they existed picks them up only when you re-apply the current module or template.
Timing and history
Section titled “Timing and history”- AWS writes the first export file about 24 hours after you create the export. The first sync looks empty until then.
- AWS doesn’t backfill. Older months need an AWS Support backfill request.
- Each sync reads the export’s billing periods that fall inside your plan’s retention window. Older data isn’t imported.
- Hourly rows are kept for the trailing 7 days. Earlier days are stored as daily rows.
- With no export configured, the sync isn’t an error. It writes no cost rows and doesn’t delete history already in Plutus.
Amortized cost
Section titled “Amortized cost”The amortized figure is calculated per line item type in the export:
- Savings Plan covered usage uses the Savings Plan effective cost.
- Reserved Instance discounted usage uses the reservation effective cost.
- Savings Plan recurring fee is the unused part of the commitment (total commitment minus used commitment).
- Reserved Instance fee is the unused amortized upfront fee plus the unused recurring fee.
- Savings Plan upfront fee and Savings Plan negation are 0, so the commitment isn’t counted twice.
- Everything else uses the billed (unblended) cost.
If the export lacks a column a rule needs, that line falls back to its billed cost. See Billed vs. amortized cost.