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

How to enable per resource costs using Terraform? #8

Open
mbuotidem opened this issue Nov 11, 2023 · 1 comment
Open

How to enable per resource costs using Terraform? #8

mbuotidem opened this issue Nov 11, 2023 · 1 comment

Comments

@mbuotidem
Copy link

Is it possible to enable per resource costs using the terraform provider? If so, it would be nice for the documentation to include a section that describes how.

Right now, the UI tells me this:

image

However, since I'm using terraform, I don't want to drop down into either the CLI or CloudFormation to achieve this.

@tomelliff
Copy link

tomelliff commented Nov 23, 2023

If you check the CloudFormation template it's just creating a role in every AWS account via CloudFormation stack sets.

You could create that same role and the IAM policies in a Terraform module and apply it out to every account in your Organization separately.

Or you can use Terraform's aws_cloudformation_stack_set resource to manage the CloudFormation stack set if that works as well.

Note that the CloudFormation template also sends a notification to Vantage's pingback SNS topic on completion. I don't know if it needs anything here but when I wrote some Terraform to create the Kubernetes integration via OpenCost I had to ping Vantage support via Intercom to get them to finish up setting up the integration. They then pointed me to the Kubernetes Agent which was a much easier integration and didn't require any extra steps.

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

2 participants