Prerequisites
Before connecting your AWS account, ensure you have:- Administrative access to your AWS account (or permissions to create IAM roles and CloudFormation stacks)
- Cost Explorer enabled in your AWS account
- Access to the AWS Console
Security First: Yasu uses a cross-account IAM role with read-only permissions. We cannot modify or delete any of your AWS resources.
Quick Setup via CloudFormation
The fastest way to connect your AWS account is through our pre-configured CloudFormation template.1
Navigate to Integrations
- Log in to your Yasu dashboard at app.yasu.cloud
- Go to Settings → Integrations
- Click Connect AWS
2
Deploy the CloudFormation Stack
You’ll be redirected to AWS CloudFormation with our template pre-loaded.
- Review the stack name — A unique name is generated for you (e.g.,
YasuIntegration-abc123) - Review the parameters — These are automatically filled in:
YasuID— Your unique Yasu customer IDYasuHandshakeID— A secure external ID for cross-account accessYasuIamRole— The Yasu IAM role allowed to assume the role in your accountBucketName— S3 bucket for Cost and Usage ReportsReportName— Name for your AWS CUR reportTemplateVersion— Version of the template (currentlyv0.0.2)
- Scroll to the bottom and check the acknowledgment box:
☑️ I acknowledge that AWS CloudFormation might create IAM resources with custom names.
- Click Create stack
3
Wait for Stack Creation
The CloudFormation stack typically completes in 2-3 minutes. You can monitor the progress in the AWS Console:
- CREATE_IN_PROGRESS — Stack is being created
- CREATE_COMPLETE — Stack created successfully
4
Verify Connection in Yasu
Return to your Yasu dashboard. You should see:
- ✅ Connection status: Active
- ✅ AWS Account ID: Your connected account
- ✅ Data sync: In progress
Your first cost-saving insights will appear within 5-10 minutes after connection.
What the CloudFormation Template Creates
Our template creates the following resources in your AWS account:1. Cross-Account IAM Role
A read-only IAM role that allows Yasu to access your cost and resource data:2. IAM Policies with Read-Only Permissions
The role has the AWS-managedViewOnlyAccess policy plus three inline policies. The main policy (YasuCostOptimizationPolicy) grants read-only access across AWS services:
The same policy also contains explicit Deny statements. An explicit Deny overrides any Allow, including
ViewOnlyAccess, so Yasu can never read the contents of your data stores:
A second policy (
YasuCloudWatchMetricsReadOnly) grants read access to Container Insights logs and Auto Scaling metrics. A third policy (ObjectGetCostandUsageReports) lets the role read the Cost and Usage Report files in the bucket the template creates.
None of the policies grant any action that creates, changes or deletes a resource.
View full IAM policies
View full IAM policies
The policies below are copied from template version In the member account template, ObjectGetCostandUsageReports (management or standalone account only)
v0.0.2: the CloudFormation template for your management (payer) or standalone account, and the member account template. ${YasuID} and ${BucketName} are filled in from your stack parameters.YasuCostOptimizationPolicyYasuAssumeMemberRoles is not present, and there is no Cost and Usage Report bucket, so s3:GetObject is denied on all resources as part of YasuDenyDataPlaneReads.YasuCloudWatchMetricsReadOnly3. Cost and Usage Report (CUR)
An S3 bucket and CUR configuration for detailed billing data (management or standalone account only):- Bucket: the
BucketNamestack parameter, private with all public access blocked; objects expire after 200 days - Report granularity: Hourly, including resource IDs
- Format: CSV, GZIP-compressed
What Yasu Will Scan
Once connected, Yasu analyzes your AWS environment for optimization opportunities:Cost Optimization Insights
- Idle EC2 Instances — Running instances with low CPU/network utilization
- Oversized Instances — Instances that can be downsized based on usage patterns
- Unattached EBS Volumes — Volumes not connected to any instance
- Old EBS Snapshots — Snapshots older than retention policies
- Unused Elastic IPs — Static IPs not associated with running resources
- Idle RDS Instances — Databases with minimal connections or queries
- Underutilized Lambda — Functions with excess memory allocation
- S3 Storage Classes — Buckets that could benefit from lifecycle policies
Savings Opportunities
- Reserved Instance Coverage — Recommendations for RI purchases
- Savings Plans — Compute and EC2 Savings Plan opportunities
- Spot Instance Candidates — Workloads suitable for Spot pricing
Cost Optimization Hub Recommendations
Yasu surfaces recommendations from AWS Cost Optimization Hub (COH) — AWS’s own consolidated recommendation engine. COH brings rightsizing, idle-resource, Reserved Instance, and Savings Plans recommendations across your organization into one place, each with an estimated monthly saving.COH recommendations are read through the AWS Cost Optimization Hub API. Enabling it does not add to your AWS bill.
- Cost Optimization Hub is enabled (opted in) in your AWS account.
- The Yasu IAM role has
cost-optimization-hubread permissions — included in the current CloudFormation template.
Enroll in Cost Optimization Hub
Cost Optimization Hub is an opt-in AWS service. Enable it once from your management (payer) account so recommendations cover your whole organization.- AWS Console
- AWS CLI
- Open the AWS Billing and Cost Management console
- In the left navigation, select Cost Optimization Hub
- Click Enable Cost Optimization Hub (or Get started)
- Confirm the opt-in
Cost Optimization Hub is a global service — its API lives in us-east-1, so run the command with
--region us-east-1. After enrolling, AWS can take up to 24 hours to generate the first recommendations.Existing Customers: Update to the Latest Template
If you connected your AWS account before templatev0.0.2, update your Yasu IAM role once to pick up these changes:
- Cost Optimization Hub read permissions (
cost-optimization-hub:Get*,cost-optimization-hub:List*). Without them, COH recommendations will not appear in Yasu. - Strictly read-only access.
support:*is replaced by the four Trusted Advisor read actions,pricing:*is replaced bypricing:Get*,pricing:Describe*andpricing:List*, and the explicit Deny statements for data-plane reads are added. See IAM Policies with Read-Only Permissions.
Option A — Update your CloudFormation stack (recommended)
Update your existing Yasu stack to the latest template. Your role ARN stays the same; only the permissions and the reported template version change.- AWS Console
- AWS CLI
- Open AWS CloudFormation
- Select your existing Yasu stack (named
yasu-*orYasuIntegration-*) - Click Update → Replace existing template
- Under Amazon S3 URL, paste:
- On the parameters screen, set TemplateVersion to
v0.0.2and keep every other parameter value as it is - Click Next through the options screen
- On the review screen, check I acknowledge that AWS CloudFormation might create IAM resources with custom names
- Click Update stack
Option B — Edit the policy manually
If you’d rather not update the stack, replace the role’s policy directly:- Open IAM → Roles and find
YasuCostOptimizationRole-* - Open the attached YasuCostOptimizationPolicy-* policy and click Edit
- Replace the JSON with the full
YasuCostOptimizationPolicyfrom View full IAM policies, with${YasuID}and${BucketName}replaced by your stack’s parameter values - Click Save changes
A manual edit is overwritten the next time the CloudFormation stack updates. Option A keeps your role in sync with the template going forward.
Then enroll in COH
Adding the permission lets Yasu read Cost Optimization Hub, but AWS only generates recommendations once COH is enabled. If you haven’t already, enroll in Cost Optimization Hub as described above.Data Sync Schedule
Troubleshooting
Stack creation failed
Stack creation failed
Common causes:
- Insufficient permissions — Ensure you have
cloudformation:*,iam:*, ands3:*permissions - S3 bucket name conflict — The bucket name must be globally unique; try again to generate a new name
- Service limits — Check if you’ve hit IAM role limits
Connection shows as pending
Connection shows as pending
What to check:
- Verify the CloudFormation stack status is
CREATE_COMPLETE - Check that the stack wasn’t rolled back
- Ensure the callback URL is accessible (no VPN/firewall blocking)
Missing cost data
Missing cost data
What to check:
- Cost Explorer is enabled — Go to AWS Billing → Cost Explorer → Enable
- Sufficient history — Cost Explorer needs ~24 hours to populate after first enable
- IAM permissions — Verify the role has
ce:Describe*,ce:Get*andce:List*permissions
Incomplete resource scan
Incomplete resource scan
What to check:
- Regional coverage — Some resources may be in regions not yet scanned
- API rate limits — Large accounts may take longer to fully scan
- Missing permissions — Verify all Describe permissions are in place
Connecting Multiple AWS Accounts
If you have multiple AWS accounts (e.g., production, staging, development), you can connect each one:- Go to Settings → Integrations
- Click Connect AWS for each additional account
- Deploy the CloudFormation stack in each account
Next Steps
Connect GCP
Add your Google Cloud accounts for multi-cloud visibility.
Connect Azure
Add your Microsoft Azure accounts for multi-cloud visibility.