Teevity / ice

AWS Usage Tool
2.85k stars 434 forks source link

Usecase to view billing of multiple AWS acccounts using different access keys #249

Open aelanthi opened 7 years ago

aelanthi commented 7 years ago

Hi,

I'm currently using the docker container to launch Ice and view my AWS billing information. However, we have multiple AWS accounts that are completely different from each other.

So, I would like to know if it is possible to view billing information of multiple AWS accounts that have different AWS access keys. i.e each distinct AWS account can be reached only using a separate set of access key/secret combination.

Thanks, Elan

nfonrose commented 7 years ago

Hi,

This is possible. Cf Readme file section 1.6 "Set up s3 billing bucket in ice.properties. If you have multiple payer accounts, you will need to specify multiple values for each property."

[Edit] - To complement the information given above, you actually can't use multiple AK/SK, you need to use IAM Roles and cross-account relationships between them so that the single AK/SK your provide Ice with allows it to access the other accounts.