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

More Info regarding AWS cloud cost integration using Terraform #192

Open
prasoon-pxc opened this issue Jan 4, 2024 · 6 comments
Open

More Info regarding AWS cloud cost integration using Terraform #192

prasoon-pxc opened this issue Jan 4, 2024 · 6 comments

Comments

@prasoon-pxc
Copy link

prasoon-pxc commented Jan 4, 2024

I want to integrate AWS-cloud cost to opencost but could not able to find out enough documentation about how we can create different stuff like:

  • IAM-roles
  • Policies
  • Athena Query
  • S3-bucket

with terraform

@mattray
Copy link
Collaborator

mattray commented Jan 11, 2024

The OpenCost Helm chart doesn't do anything related to IAM, Athena or S3. Is the documentation here insufficient? https://www.opencost.io/docs/configuration/aws

@prasoon-pxc
Copy link
Author

In this section, it is mentioned to use CUR report and Athena database which uses AWS Glue behind the scene, but it is not mentioned here how we can create all that resources which is compatible with opencost currently we need to refer kube-cost doc for all these things

@mattray
Copy link
Collaborator

mattray commented Jan 15, 2024

I'm going to move this over to https://github.com/opencost/opencost-website and try to give the docs a walk-through to recreate

@mattray mattray transferred this issue from opencost/opencost-helm-chart Jan 15, 2024
@vishnu-anil
Copy link

Same here. Doc talks about some Cloudformation template to create the dependent resources but cannot find it anywhere.

@vishnu-anil
Copy link

The OpenCost Helm chart doesn't do anything related to IAM, Athena or S3. Is the documentation here insufficient? https://www.opencost.io/docs/configuration/aws

yes its insufficient. What table/columns etc required for athena is not specified anywhere

@vishnu-anil
Copy link

Anyone looking for this, I was able to create required table and columns using below steps

CREATE EXTERNAL TABLE IF NOT EXISTS opencost(
  year VARCHAR(4), month VARCHAR(2), date VARCHAR(2), line_item_usage_start_date DATE, line_item_line_item_type STRING, line_item_resource_id STRING, bill_payer_account_id STRING, line_item_usage_account_id STRING, line_item_product_code STRING, line_item_usage_type STRING, line_item_unblended_cost DOUBLE)
LOCATION 's3://yourbucket/'

opencost is the table name I refer inside the json secret in kubernetes

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

No branches or pull requests

3 participants