Step 2: Set Master Payer Account
Eco operates on the AWS Cost and Usage Report that is located in the Master Payer account. The master payer account is the top level account where all billing data is consolidated.
For organizations with a single account, that account is the master payer account.
For organizations with multiple AWS accounts, the master payer account, is the one to which member accounts are linked for consolidated billing.
If you have already connected the master payer account with Spotinst:
- Choose that account from the menu on the upper right of the console.
- Choose Eco Dashboards from the side panel.
- Click Update Permissions.
If the master payer is not connected to Spotinst:
- Choose new account from the account menu on the upper right of the console.
- Name the new account.
- Click on Eco for AWS.
Step 3: Setup Reports
Proceed to populate the required fields:
Cost and Usage Report
The Cost and Usage Report is Available here: https://console.aws.amazon.com/billing/home?#/reports
To create a new report follow the screenshots provided below.
- “Units” should be Hourly.
- “Resource IDs” should be included.
- Copy the “S3 Bucket” value.
Once the Cost and Usage Report bucket has been entered the Open Template button will be enabled. Click and execute the CloudFormation template.
Note: In the Create Stack dialog under Capabilities please mark the checkbox acknowledge that AWS CloudFormation might create IAM resources.
4. Submit the Form
Copy the RoleArn from from the output of the CloudFormation execution. It will have a format similar to: arn:aws:iam::123456789012:role/sc-iam-stack-StratCloudRole-ABCDEFG
Once copied, the Connect button will be activated. Click to enable Eco.