8000 Add pricing support for AWS CloudFormation · Issue #49 · infracost/infracost · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Add pricing support for AWS CloudFormation #49
Closed
@hassankhosseini

Description

@hassankhosseini

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

Metadata

Metadata

Assignees

Labels

awsIssue relates to AWSnew resourcesNew cloud resources to be added

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0