Skip to main content
Connect my AWS data
Support @Greenly avatar
Written by Support @Greenly
Updated over 4 months ago

💡 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

  1. Go to Access management > Policies

  2. Click on Create policy

  3. In the Create policy window, go to the JSON tab

  4. Copy the following policy and paste it in the JSON tab. Then, click Next: Tags, then Next: Review

  5. 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

  1. Go to Access Management > Roles and select Create role

  2. In the Create role window, select Another AWS account and then in the Account ID field, enter Greenly's account ID: 357850250637

  3. 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

  4. Click on next, and then select the CostExplorerAccess policy you created in the previous step

  5. Click Next: Tags, then Next: Review and name your new role greenly_cost_explorer

  6. At this step, your policy should be looking like this

Did this answer your question?