Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS: Collect metrics from multiple profiles #173

Open
1 task
Pokom opened this issue May 16, 2024 · 1 comment
Open
1 task

AWS: Collect metrics from multiple profiles #173

Pokom opened this issue May 16, 2024 · 1 comment

Comments

@Pokom
Copy link
Contributor

Pokom commented May 16, 2024

Overview

Our AWS module was built with the intention of only collecting data for a single profile. As usage as grown and our users needs have changed, we need a way to collect metrics from multiple AWS profiles. When launching cloudcost-exporter we need a way to

  • specify single profile to collect metrics for OR
  • specify single role ARN to use to for authentication
  • specify list of role ARN's to use for authentication

This is a fundamental change to how we generate clients with AWS and will require a proof of concept to help inform how to migrate the codebase over. Ideally we should support the current authentication model while allowing us to opt into adopting using role ARN's for authentication. Once both are available, an end user should be able to chose one or the other, but not both authentication mechanisms.

Documentation

Yace:

AWS SDK:

Goals

  • Create a POC in the scripts directory to demonstrate collecting ec2 instances from many profiles
@Pokom Pokom self-assigned this May 16, 2024
Pokom added a commit that referenced this issue May 16, 2024
- fixes #173

Cherry picked a change from #169 to extend the configuration for
AWS to have profiles which represents the profiles you want to pill data
from.

Updated `aws/s3` to become aware of multiple profiles and create a new
costexplorer client per profile when fetching billing data.
Updated `s3.parseBillingData` to return a slice of outputs so that we
can merge them with other profiles before parsing out billing data.
@Pokom Pokom changed the title AWS S3 Costs only pull from single profile AWS: Collect metrics from multiple profiles Jul 16, 2024
@Pokom
Copy link
Contributor Author

Pokom commented Jul 30, 2024

@Pokom will drop my notes here and then likely pivot to deployment per profile.

@Pokom Pokom removed their assignment Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant