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

Add pricing support for AWS CloudFormation #49

Closed
hassankhosseini opened this issue Sep 2, 2020 · 2 comments
Closed

Add pricing support for AWS CloudFormation #49

hassankhosseini opened this issue Sep 2, 2020 · 2 comments
Assignees
Labels
aws Issue relates to AWS new resources New cloud resources to be added
Projects

Comments

@hassankhosseini
Copy link
Member

hassankhosseini commented Sep 2, 2020

AWS Cloud Formation costs: https://aws.amazon.com/cloudformation/pricing/

aws_cloudformation_stack and aws_cloudformation_stack_set are the main resources. For each one, we can use this logic to show the cost components:

  1. If template_body is set AND its "Resources.types" start with AWS::*, Alexa::*, or Custom::* then return IsSkipped: true, NoPrice: true, as it's a free resource.
  2. Else, show both of these:
  • "Handler operations", units "operations". Usage file param monthly_handler_operations: 10000 # Monthly number of non-free handler operations (resources outside of the AWS::*, Alexa::*, and Custom::* namespaces).
  • "Durations above 30s", units "seconds". Usage file param monthly_duration_secs: 0 # Monthly duration of non-free handler operations that go above 30 seconds, in seconds.

As normal, the cost components should show cost-depends-on-usage if the usage file param is not specified.

Free resources:
aws_cloudformation_stack_set_instance
aws_cloudformation_type

@aliscott aliscott added the new resources New cloud resources to be added label Sep 7, 2020
@hassankhosseini hassankhosseini changed the title Add support for AWS CloudFormation Add pricing support for AWS CloudFormation Jan 22, 2021
@alikhajeh1 alikhajeh1 added this to Todo (prioritized top to bottom) in Main via automation Apr 6, 2021
@alikhajeh1 alikhajeh1 added the aws Issue relates to AWS label Apr 16, 2021
@alikhajeh1 alikhajeh1 removed this from Todo (prioritized top to bottom) in Main May 24, 2021
@alikhajeh1 alikhajeh1 added this to Todo (prioritized top to bottom) in Main via automation May 28, 2021
@NeverovDS
Copy link
Contributor

@alikhajeh1, Hey, I want to work on it!

@alikhajeh1 alikhajeh1 moved this from Todo (prioritized top to bottom) to In progress in Main Jun 7, 2021
@alikhajeh1 alikhajeh1 moved this from In progress to Merged to master in Main Jun 10, 2021
@alikhajeh1
Copy link
Member

@nocquidant, @miyurusankalpa, @guilhermerenew, @danielbayerlein and @RichardDRJ support for costs of CloudFormation used in Terraform projects was released in v0.9.1 today.

If you're interested in seeing Infracost process CloudFormation templates as input, please 👍 this issue

@alikhajeh1 alikhajeh1 moved this from Merged to master to Released (in Homebrew) in Main Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws Issue relates to AWS new resources New cloud resources to be added
Projects
Main
Released
Development

No branches or pull requests

4 participants