How to Connect Your AWS Account
Securely connect your AWS account to analyze usage and identify cost-saving opportunities.
Prerequisites
- An active MilkStraw AI account
- AWS account with permissions to create IAM roles and policies on Payer account
- Access to the AWS Management Console
This connection is established securely using a read-only cross-account IAM role, which you deploy in your AWS environment via CloudFormation.
Connecting a Single AWS Account
Initiate Connection
In the Milkstraw AI dashboard, start the connection process. Enter your company name and AWS Payer Account ID.
Deploy CloudFormation
We’ll generate a CloudFormation template for you. Launch it in your AWS Console to deploy a read-only cross-account IAM role with a unique external ID.
Execute CloudFormation Stack
In the AWS CloudFormation console, acknowledge the required capabilities, and execute the stack. This action creates a secure cross-account IAM role in your account with a unique external ID and the necessary read-only permissions for monitoring.
Verify Access
Once the stack is CREATE_COMPLETE
, return to MilkStraw AI and click “Verify.” We’ll check access to the necessary AWS services.
Connecting an AWS Organization
If you are using AWS Organizations with multiple linked accounts, you will need to onboard your entire organization after connecting your Payer Account.
Connect Payer Account
Complete the steps above for your Payer Account.
Launch Organization StackSet
When prompted, deploy the StackSet wrapper template in AWS CloudFormation.
Deploy AWS CloudFormation
The pre-filled StackSet wrapper template be automatically deployed to every child account in your organization
Verify Organization Access
Once all stacks are CREATE_COMPLETE
, return to MilkStraw AI and click “Verify” to confirm access for your entire organization.
Once access across all accounts is verified, your AWS Organization is successfully connected to MilkStraw AI.
What Happens Next?
- MilkStraw AI securely monitors your usage using read-only permissions.
- We analyze your usage patterns and identify opportunities.