Skip to content

Commit

Permalink
feat: add OPA to list of examples
Browse files Browse the repository at this point in the history
  • Loading branch information
tim775 committed Dec 17, 2021
1 parent 0e85690 commit 265668d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ The [examples](examples) directory demonstrates how these actions can be used in
- [Private Terraform module](examples/private-terraform-module): a Terraform project using a private Terraform module
- [Thresholds](examples/thresholds): only post a comment when cost thresholds are exceeded
- [Conftest](examples/conftest): check Infracost cost estimates against policies using Conftest
- [OPA](examples/opa): check Infracost cost estimates against policies using Open Policy Agent
- [Slack](examples/slack): send cost estimates to Slack

## Actions
Expand Down
1 change: 1 addition & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ All examples post a single comment on pull requests, which gets updated as more
- [Multi-Terraform workspace](multi-terraform-workspace): multiple Terraform workspaces using the Infracost config file
- [Thresholds](thresholds): only post a comment when cost thresholds are exceeded
- [Conftest](conftest): check Infracost cost estimates against policies using Conftest
- [OPA](opa): check Infracost cost estimates against policies using Open Policy Agent
- [Slack](slack): send cost estimates to Slack

See the [contributing](../CONTRIBUTING.md) guide if you'd like to add an example.

1 comment on commit 265668d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💰 Infracost estimate: monthly cost will increase by $110,130 📈

Project Previous New Diff
infracost/infracost/examples/terraform/plan.json $0 $55,065 +$55,065
infracost/infracost/examples/terraform/plan.json $0 $55,065 +$55,065
All projects $0 $110,130 +$110,130
Infracost output
Project: infracost/infracost/examples/terraform/plan.json

+ aws_instance.web_app
  +$55,065

    + Instance usage (Linux/UNIX, on-demand, m5.4xlarge)
      +$41,570

    + root_block_device
    
        + Storage (general purpose SSD, gp2)
          +$371

    + ebs_block_device[0]
    
        + Storage (provisioned IOPS SSD, io1)
          +$9,268
    
        + Provisioned IOPS
          +$3,856

+ aws_lambda_function.hello_world
  Monthly cost depends on usage

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

    + Duration
      Monthly cost depends on usage
        +$0.0012357988 per GB-seconds

Monthly cost change for infracost/infracost/examples/terraform/plan.json
Amount:  +$55,065 ($0.00 → $55,065)

──────────────────────────────────
Project: infracost/infracost/examples/terraform/plan.json

+ aws_instance.web_app
  +$55,065

    + Instance usage (Linux/UNIX, on-demand, m5.4xlarge)
      +$41,570

    + root_block_device
    
        + Storage (general purpose SSD, gp2)
          +$371

    + ebs_block_device[0]
    
        + Storage (provisioned IOPS SSD, io1)
          +$9,268
    
        + Provisioned IOPS
          +$3,856

+ aws_lambda_function.hello_world
  Monthly cost depends on usage

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

    + Duration
      Monthly cost depends on usage
        +$0.0012357988 per GB-seconds

Monthly cost change for infracost/infracost/examples/terraform/plan.json
Amount:  +$55,065 ($0.00 → $55,065)

──────────────────────────────────
Key: ~ changed, + added, - removed

4 cloud resources were detected:
∙ 4 were estimated, 4 include usage-based costs, see https://infracost.io/usage-file
Is this comment useful? Yes, No

Please sign in to comment.