aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.58k stars 3.88k forks source link

(cli): Stack cost estimator #17437

Open dontirun opened 2 years ago

dontirun commented 2 years ago

Description

Add the ability to analyze a synthesized CloudFormation template in the AWS Pricing Calculator

Use Case

There are many tradeoffs to make when developing an application. Having the ability to analyze the potential cost of a solution prior to deployment can help with determining cost related tradeoffs. This can especially be helpful when using community constructs or higher level constructs that may deploy resources that the user isn't aware of.

Proposed Solution

  1. User runs cdk synth --cost
  2. The cdk synthesizes the template and calls the the CloudFormation EstimateTemplateCost Api
  3. The CLI outputs the Pricing Calculator URL returned by the API

Other information

No response

Acknowledge

rix0rrr commented 2 years ago

I don't mind this feature, but I want it with a huge disclaimer that we are not calculating this price ourselves and any complaints about it should be directed to CloudFormation (preferably with a link).

I don't want this to become a support sink.

github-actions[bot] commented 1 year ago

This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

niebloomj commented 1 year ago

I think this is a great idea.

kylerjensen commented 1 year ago

I still want this.

fusion27 commented 6 months ago

This would be helpful, +1