AWS Provider
The AWS provider allows you to collect Cost and Usage Report (CUR) data from Amazon Web Services for analysis in NarevAI.
Prerequisites
- Active AWS account with billing data access
- Cost and Usage Report (CUR) configured and published to S3
- AWS credentials with appropriate permissions
- S3 bucket containing CUR files
- Optionally: IAM role for cross-account access
Setting Up Cost and Usage Reports
1. Enable Cost and Usage Reports
- Sign in to the AWS Management Console
- In the search bar at the top, type "Cost and Usage Reports" and select it from the dropdown
- Alternatively, you can find it under Billing and Cost Management in the services menu
- Or navigate to My Billing Dashboard > Data Exports in the left sidebar
- In the Billing and Cost Management console, click on Data Exports tab
- Click Create export
2. Configure Export Details
Choose Export Type:
- Select Standard data export (recommended for NarevAI integration)
- Alternatively, you can choose Legacy CUR export for compatibility with older systems
Export Name:
- Enter a descriptive name (e.g.,
MyCostExport
,NarevAI-Export
) - Export names can have up to 128 characters and must be unique
- Valid characters are a-z, A-Z, 0-9, - (hyphen), and _ (underscore)
- Enter a descriptive name (e.g.,
3. Data Table Content Settings
Select FOCUS 1.0 with AWS columns - this is the format NarevAI is optimized for:
- FOCUS 1.0 with AWS columns ✅ (Required)
- Standardized FinOps cost data format
- Includes AWS-specific metadata for detailed analysis
- Fully supported by NarevAI's cost optimization engine
4. Data Export Delivery Options
Configure how your export will be delivered:
Compression Type and File Format
- Parquet - Parquet (recommended for better performance and smaller files)
- gzip - text/csv (for compatibility with older systems)
File Versioning
- Overwrite existing data export file - Saves on Amazon S3 storage costs (recommended)
- Create new data export file - Allows you to track changes in cost and usage data over time
5. Configure S3 Storage Settings
S3 Bucket Configuration
- S3 Bucket:
- Click Configure to set up your S3 bucket
- You can either:
- Create a bucket - AWS will create a new bucket for you
- Select existing bucket - Choose from your existing S3 buckets
For New Buckets:
- S3 bucket name: Choose a globally unique name (e.g.,
company-focus-export
) - Region: Select the region where you want to store your data
- Bucket policy: AWS will automatically apply the necessary policy for Data Exports access
- S3 bucket name: Choose a globally unique name (e.g.,
S3 Path Prefix:
- Enter a prefix for organizing your exports (e.g.,
focus
,cur
,billing
) - Valid prefix names must not include trailing "/" or "*"
- Enter a prefix for organizing your exports (e.g.,
Example S3 Configuration
S3 bucket: narevfocusexport
S3 path prefix: focus
Region: Europe (Ireland)
6. Tags (Optional)
Add tags to help organize and track your AWS costs:
- Each tag consists of a key and an optional value
- You can add up to 50 tags
- Use tags to search, filter, and track your AWS costs
AWS Credentials Setup
NarevAI requires AWS credentials to access your cost data. Here's what you need:
Required: Access Keys ✅
Always required - these are your basic AWS credentials:
- In the AWS Console search bar, type "IAM" and select IAM from the dropdown
- In the IAM console, click Users in the left sidebar
- Select your user or create a new user for billing access
- Go to Security credentials tab
- Click Create access key
- Choose Application running outside AWS
- Save both the Access Key ID and Secret Access Key
Required Permissions:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["s3:GetObject", "s3:ListBucket", "s3:GetBucketLocation"],
"Resource": [
"arn:aws:s3:::your-export-bucket",
"arn:aws:s3:::your-export-bucket/*"
]
}
]
}
Optional: IAM Role for Enhanced Security 🔒
Use when you need:
- Cross-account access (bucket in different AWS account)
- Enhanced security (temporary credentials)
- Better auditing (role-based access logging)
How it works:
- NarevAI logs in with your Access Keys
- Then assumes the IAM Role for actual data access
- Uses temporary credentials with limited permissions
Setup:
- In IAM console, click Roles → Create role
- Select AWS account as trusted entity
- Enter the account ID that needs access
- Optionally, require an External ID for extra security
- Attach the same S3 permissions policy above
- Note the Role ARN for NarevAI configuration
📚 Detailed AWS Guides:
- IAM Tutorial: Cross-Account Access with Roles
- AWS Billing IAM Permissions
- Cross-Account Resource Access
Adding AWS Provider in NarevAI
Step 1: Navigate to Connect
- In the NarevAI sidebar, under Data Connections, click Connect
- You'll see the "Provider Integrations" page with available providers
Step 2: Select AWS Provider
- Find the Amazon Web Services card in the provider grid
- Click the Connect button on the AWS card
- The AWS configuration dialog will open
Step 3: Configure AWS Provider
Narev Configuration
Provider Name ✅ Required
- Unique identifier (e.g.,
aws-prod
,company-aws
) - Format: lowercase letters, numbers, hyphens, underscores only
Display Name (Optional)
- Human-readable name (e.g.,
AWS Production
,Company AWS
) - Shown in the interface
App Configuration - AWS Credentials ✅ Required
Access Key ID ✅
- Your AWS access key (format:
AKIAIOSFODNN7EXAMPLE
)
Secret Access Key ✅
- Your AWS secret key (format:
wJalrXUtnFEMI/K7MDENG...
) - Password field with show/hide toggle
Session Token (Optional)
- For temporary credentials (format:
FwoGZXIvYXdzEJr...
) - Leave empty for permanent keys
IAM Role (Optional)
Role ARN
- Cross-account role (format:
arn:aws:iam::123456789012:role/YourRoleName
)
External ID
- Additional security (e.g.,
your-unique-external-id
)
Provider-Specific Configuration
Bucket Name ✅ Required
- S3 bucket with your exports (e.g.,
narevfocusexport
) - Must match the bucket you configured in AWS Data Exports
Report Name ✅ Required
- Export name from AWS (e.g.,
FocusExport
,MyCostExport
) - Must match exactly what you named your export in AWS
Report Prefix ✅ Required
- S3 prefix from AWS Data Export (e.g.,
focus/
,cur/
,billing/
) - Must match exactly what you specified when creating the export in AWS
Region ✅ Required
- Dropdown selection:
- US East (N. Virginia) - us-east-1
- US West (Oregon) - us-west-2
- EU (Ireland) - eu-west-1
- EU (Frankfurt) - eu-central-1
- Asia Pacific (Singapore) - ap-southeast-1
- Asia Pacific (Tokyo) - ap-northeast-1
Step 4: Connect Provider
- Review all configuration settings
- Click the Connect button
- NarevAI will test the connection to your AWS S3 bucket
- If successful, the provider will be added and appear as "Connected"
- You can now sync billing data from this AWS account
Connection Test includes:
- AWS credentials validation
- S3 bucket access verification
- Export files detection
- Permissions check
Configuration Examples
Basic Setup with FOCUS Export
Provider Name: aws-main
Display Name: Main AWS Account
Access Key ID: AKIAIOSFODNN7EXAMPLE
Secret Access Key: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Bucket Name: narevfocusexport
Report Name: MyCostExport
Report Prefix: focus
Region: eu-west-1
Cross-Account Access with IAM Role
Provider Name: aws-client-account
Display Name: Client AWS Account
Access Key ID: AKIAIOSFODNN7EXAMPLE
Secret Access Key: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Role ARN: arn:aws:iam::123456789012:role/CURAccessRole
External ID: unique-external-identifier
Bucket Name: client-export-bucket
Report Name: ClientCostExport
Region: us-west-2
Legacy CUR Export Setup
Provider Name: aws-legacy
Display Name: AWS Legacy CUR
Access Key ID: AKIAIOSFODNN7EXAMPLE
Secret Access Key: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Bucket Name: company-billing-reports
Report Name: detailed-billing-report
Region: us-east-1
Common Test Results
Success Response
Successfully connected to AWS S3
Bucket: narevfocusexport
Report Name: MyCostExport
Region: eu-west-1
Objects Found: 245
Role Assumed: true
Access Denied
AWS connection failed: AccessDenied
- Solution: Verify your credentials have S3 permissions for the specified bucket
Bucket Not Found
AWS connection failed: NoSuchBucket
- Solution: Check the bucket name spelling and ensure it exists in the specified region
Invalid Credentials
AWS connection failed: InvalidAccessKeyId
- Solution: Verify your Access Key ID and Secret Access Key are correct
Supported Features
The AWS provider supports:
- ✅ Cost and Usage Report (CUR) data
- ✅ FOCUS 1.0 format (recommended)
- ✅ Legacy CUR format
- ✅ Detailed billing information
- ✅ Resource tags analysis
- ✅ Cost allocation tags
- ✅ Savings Plans data
- ✅ Reserved Instances information
- ✅ Cost optimization recommendations
- ✅ Carbon emissions data
- ✅ Cross-account access via IAM roles
Troubleshooting
Permission Issues
- Ensure your AWS credentials have
s3:GetObject
,s3:ListBucket
, ands3:GetBucketLocation
permissions - Verify the S3 bucket policy allows access from your credentials
- Check IAM role trust relationships if using cross-account access
Export Configuration Issues
- Verify your Data Export is actively generating files
- Check that the export includes the data types you need (FOCUS 1.0 recommended)
- Ensure the S3 bucket and prefix match your export delivery settings
- Confirm the export name matches exactly (case-sensitive)
Authentication Failures
- For access keys: Verify they are active and not expired
- For IAM roles: Check the role ARN format and trust relationships
- For temporary credentials: Ensure session tokens are current
Regional Issues
- Verify the S3 bucket exists in the specified region
- Some AWS services require specific regional configurations
- Cross-region access may have additional latency
No Data Found
- Check if export files exist in the specified S3 path
- Verify the export name matches exactly (case-sensitive)
- Ensure your billing period has completed for data to be available
- For new exports, wait 24 hours for the first data to be generated
Data Collection
Once configured, the AWS provider will collect:
- Usage metrics: Service usage, resource hours, data transfer
- Cost data: On-demand costs, reserved instance savings, spot pricing
- Resource information: Instance types, regions, availability zones
- Tagging data: Cost allocation tags, resource tags for cost attribution
- Time-series data: Daily cost breakdowns and usage patterns
- FOCUS-compliant data: Standardized cost and usage data format
Data collection runs automatically based on your configured schedule and will appear in the NarevAI dashboard after the first successful sync. AWS export data is typically updated once per day with your selected refresh cadence.