💡 Following this simple tutorial (10 minutes) will allow synchronizing your AWS usage data to the Greenly platform and leverage an interactive dashboard showing where you stand at any time of the year.
ℹ️ Before starting, make sure you have access to your AWS console with the right to create IAM policies and roles. At the end of the tutorial, you will have a roleARN that you will need to provide, on the Greenly platform in your cloud module
Before you start : make sure historical data is activated
Go on the IAM console - Billing and Cost Management > Cost Management Preferences.
Activate the multi-year data option
1. Create IAM policy
Go to Access management > Policies
Click on Create policy
In the Create policy window, go to the JSON tab
Copy the following policy and paste it in the JSON tab. Then, click Next: Tags, then Next: Review
Name the policy "CostExplorerAccess" and click on Create policy
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ce:GetCostAndUsage"
],
"Resource": [
"*"
]
}
]
}
ℹ️ Note
This means Greenly will have no other permission than simply reading and retrieving your billing data, on which the cloud study relies.
2. Create IAM role
Go to Access Management > Roles and select Create role
In the Create role window, select Another AWS account and then in the Account ID field, enter Greenly's account ID: 357850250637
In Options, check the Require external ID checkbox, and enter the externalID of your choice (for eg: companyName_2328). You should not use any special characters (#,!,-,&...) in this field. Write down this external ID as you will have to provide it to us
Click on next, and then select the CostExplorerAccess policy you created in the previous step
Click Next: Tags, then Next: Review and name your new role greenly_cost_explorer
At this step, your policy should be looking like this