Skip to content

Instantly share code, notes, and snippets.

View edgarsandi's full-sized avatar
👋
Hi there

Edgar R. Sandi edgarsandi

👋
Hi there
View GitHub Profile
@edgarsandi
edgarsandi / terraform-cost-estimation.rego
Created October 23, 2020 13:28 — forked from antonbabenko/terraform-cost-estimation.rego
Terraform Cost Estimation + Open Policy Agent
# Terraform Cost Estimation + Open Policy Agent
#
# This code snippet supports terraform state for now.
#
# Get the whole response:
# opa eval --data terraform-cost-estimation.rego --input terraform.tfstate --format pretty data.terraform_cost_estimation
#
# Get boolean response. Return false if state (per hour) is too expensive:
# opa eval --data terraform-cost-estimation.rego --input terraform.tfstate --format pretty data.terraform_cost_estimation.response.allowed
@edgarsandi
edgarsandi / readme.md
Last active March 9, 2021 00:45
suggestions to terraform-docs/issue/412
@edgarsandi
edgarsandi / _install.md
Last active August 30, 2022 19:14
Terraform plan GitLab highlight
@edgarsandi
edgarsandi / markdown-details-collapsible.md
Last active November 4, 2022 12:59 — forked from pierrejoubert73/markdown-details-collapsible.md
How to add a collapsible section in markdown.

How to

<details>
  <summary>Click me</summary>
  
  ### Heading
  1. Foo
  2. Bar
     * Baz
 * Qux