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

Create infracost_test.tf #1

Open
wants to merge 1 commit into
base: infracost-test
Choose a base branch
from

Conversation

stanislavkozlovski
Copy link
Owner

Fixes #{ISSUE_NUMBER}

By submitting this pull request I confirm I've read and complied with the below declarations.

  • I have read the Contribution guidelines and I am confident that my PR reflects them.
  • I have followed the coding guidelines for this project.
  • My code follows the skeleton code structure.
  • This pull request has a descriptive title. For example, Added {Algorithm/DS name} [{Language}], not Update README.md or Added new code.
  • This pull request will be closed if I fail to update it even once in a continuous time span of 7 days.

Copy link

infracost bot commented Oct 8, 2024

💰 Infracost report

Consider fixing these issues, they don't align with your company's FinOps policies & the Well-Architected Framework.

FinOps policies
🔴 EBS - consider upgrading gp2 volumes to gp3

gp3 volumes are the latest generation of general-purpose SSD-based EBS volumes that enable you to provision performance independent of storage capacity, while providing up to 20% lower price per GB than existing gp2 volumes. With gp3 volumes, you can scale IOPS (input/output operations per second) and throughput without needing to provision additional block storage capacity. This means you only pay for the storage you need.

resource aws_instance.my_web_app

  • Set root_block_device.volume_type to gp3.

in project main

Tagging policies
🔴 FinOps tags

This example Tagging policy shows how you can enforce required FinOps tag keys/values in pull requests. This example checks for the tags 'Service' (can have any value) and 'Environment' (must be Dev/Stage/Prod) on all taggable resources being changed in the pull request. You can adjust it from https://dashboard.infracost.io > Governance > Tagging policies. You have a 14 day trial of this feature as it's part of Infracost Cloud.

resource aws_instance.my_web_app

  • Environment has invalid value production. Must be one of the 3 allowed values - did you mean Prod?
  • Missing mandatory tag root_block_device.Service. Consider using default tags to avoid adding tags to individual resources.
  • Missing mandatory tag root_block_device.Environment. Must be one of Dev, Stage, Prod. Consider using default tags to avoid adding tags to individual resources.

in project main

resource aws_lambda_function.my_hello_world

  • Missing mandatory tag Service. Consider using default tags to avoid adding tags to individual resources.

in project main

Guardrails
🔴 Costs increase by more than $3K/yr - please review

Cost increased by $294, threshold was $250. Review the estimate to ensure it meets your expectations. If you are unsure what to do, check with your team lead.

Monthly estimate increased by $294 📈
Changed project Baseline cost Usage cost* Total change New monthly cost
main +$294 - +$294 $294

*Usage costs can be estimated by updating Infracost Cloud settings, see docs for other options.

Estimate details (includes details of skipped projects due to errors)
Key: * usage cost, ~ changed, + added, - removed

──────────────────────────────────
Project: main

+ aws_lambda_function.my_hello_world
  Monthly cost depends on usage

    + Requests
      Monthly cost depends on usage
        +$0.20 per 1M requests

    + Ephemeral storage
      Monthly cost depends on usage
        +$0.0000000309 per GB-seconds

    + Duration (first 6B)
      Monthly cost depends on usage
        +$0.0000166667 per GB-seconds

+ aws_instance.my_web_app
  +$294

    + Instance usage (Linux/UNIX, on-demand, m3.xlarge)
      +$194

    + root_block_device

        + Storage (general purpose SSD, gp2)
          +$100

Monthly cost change for main
Amount:  +$294 ($0 → $294)

──────────────────────────────────
Key: * usage cost, ~ changed, + added, - removed
1 project has no cost estimate change.
Run the following command to see its breakdown: infracost breakdown --path=/path/to/code

──────────────────────────────────
*Usage costs can be estimated by updating Infracost Cloud settings, see docs for other options.

2 cloud resources were detected:
∙ 2 were estimated

This comment will be updated when code changes.

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

Successfully merging this pull request may close these issues.

1 participant