FinOps Settings
Configure FinOps for your cloud connections, including cost allocation tags and sync schedules.
Accessing Settings
Navigate to Settings > FinOps in the sidebar, or visit /settings/finops.
Prerequisites
Before configuring FinOps:
- Cloud Connections: At least one AWS or Azure connection must be configured
- Ultimate License: FinOps requires the Ultimate license tier
- Admin Role: Only admins can configure FinOps settings
Cloud Connection Configuration
Viewing Connections
The settings page displays all cloud connections with their FinOps status:
| Column | Description |
|---|---|
| Name | Connection name |
| Provider | AWS or Azure |
| Status | Connection health status |
| FinOps Enabled | Toggle for FinOps data collection |
| Actions | Configure or sync buttons |
Enabling FinOps
To enable FinOps on a cloud connection:
- Find the connection in the list
- Toggle Enable FinOps to ON
- Wait for the configuration dialog to appear
- Configure tag keys and options
- Click Save
Disabling FinOps
To disable FinOps:
- Toggle Enable FinOps to OFF
- Confirm the action
Note: Disabling FinOps will stop data collection but preserve existing data.
Cost Allocation Tags
Why Tags Matter
Tags enable cost allocation for:
- Showback: Show costs to teams without charging
- Chargeback: Bill costs to departments/projects
- Analysis: Break down costs by dimension
Configuring Tag Keys
When enabling FinOps, specify which AWS/Azure tags to track:
Recommended Tags:
- Environment (dev, staging, prod)
- Project
- Team or Owner
- CostCenter
- Application
Tag Key Configuration
In the configuration dialog:
- Enter tag key names (case-sensitive)
- Add multiple tags using the "+" button
- Remove tags using the "x" button
- Order determines priority in reports
Provider-Specific Notes
AWS Tags:
- Must match Cost Allocation Tags enabled in AWS Billing Console
- User-defined tags require "user:" prefix in some contexts
- System tags (aws:*) are automatically available
Azure Tags:
- Tags must exist on resources
- Tag names are case-insensitive in Azure
- Subscription-level tags available automatically
AWS Configuration
Required IAM Permissions
The AWS IAM role/user needs these permissions for FinOps:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ce:GetCostAndUsage",
"ce:GetCostForecast",
"ce:GetAnomalies",
"ce:GetAnomalyMonitors",
"ce:GetDimensionValues",
"ce:GetTags"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"ec2:DescribeInstances",
"ec2:DescribeVolumes",
"rds:DescribeDBInstances",
"s3:ListAllMyBuckets"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"cloudwatch:GetMetricStatistics",
"cloudwatch:ListMetrics"
],
"Resource": "*"
}
]
}
Cost Explorer Prerequisites
Ensure in AWS Billing Console:
- Cost Explorer is activated
- Cost Allocation Tags are enabled for desired tags
- Hourly granularity is enabled (optional, for detailed analysis)
Azure Configuration
Required API Permissions
The Azure service principal needs:
Microsoft.CostManagement/query/action
Microsoft.CostManagement/dimensions/read
Microsoft.Compute/virtualMachines/read
Microsoft.Compute/disks/read
Microsoft.Insights/metrics/read
Cost Management Prerequisites
- Cost Management must be enabled on the subscription
- The service principal must have "Cost Management Reader" role
- Export schedules (if using) must be configured
Sync Configuration
Sync Schedule
Configure how often cost data is synced:
| Option | Description |
|---|---|
| Daily | Sync once per day (recommended) |
| Twice Daily | Sync every 12 hours |
| Hourly | Sync every hour (higher API costs) |
Manual Sync
Trigger an immediate sync:
- Click Sync Now on the connection
- Or use the Sync Now button on the Overview page
- Monitor progress in the sync progress indicator
Sync Data Range
Initial sync fetches up to 6 months of historical data:
- First sync may take 5-15 minutes
- Subsequent syncs only fetch new data
- Re-sync available if data issues occur
Data Management
Data Retention
FinOps data is retained according to these policies:
| Data Type | Retention |
|---|---|
| Raw line items | 6 months |
| Daily aggregates | 12 months |
| Anomalies | Indefinite |
| Forecasts | 30 days |
Data Cleanup
To remove FinOps data for a connection:
- Disable FinOps on the connection
- Contact support for complete data deletion
Troubleshooting
Connection Not Showing
- Verify cloud connection is in "Connected" status
- Check that you have admin role
- Refresh the page
Sync Failures
- Check cloud connection credentials are valid
- Verify IAM permissions include Cost Explorer access
- Check AWS/Azure service health
- Review error message in sync history
No Tag Data
- Verify tag keys are correctly spelled (case-sensitive)
- Check tags are enabled in AWS Cost Allocation Tags
- Wait for next sync to pick up changes
- Verify resources have the expected tags
Permission Errors
- Review IAM policy has all required permissions
- Check for SCP (Service Control Policies) blocking access
- Verify account/subscription is not in sandbox mode
API Access
# Get cloud connections with FinOps status
curl -X GET https://realm9.app/api/terraform/cloud-connections \
-H "Authorization: Bearer $TOKEN"
# Enable FinOps on a connection
curl -X PATCH https://realm9.app/api/terraform/cloud-connections/{id} \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"finopsEnabled": true,
"finopsConfig": {
"costTagKeys": ["Environment", "Project", "Team"]
}
}'
# Trigger manual sync
curl -X POST https://realm9.app/api/finops/sync \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"cloudConnectionId": "connection-id"
}'
Best Practices
Initial Setup
- Start with your production AWS/Azure accounts
- Configure the most important cost allocation tags
- Run initial sync and verify data
- Add additional accounts gradually
Tag Strategy
- Use consistent tag names across all accounts
- Keep tag key list to 5-10 important dimensions
- Document tag values and owners
- Enforce tagging via AWS Tag Policies or Azure Policy
Performance
- Use daily sync for most use cases
- Limit tag keys to reduce data volume
- Use filters in Cost Explorer to improve query speed
