Suggestion 1:
→ At the beginning inside the <URL> (as in the terraform registry, or at the end with format like ASCII document format for example)
→ Always sort by <Mode> (Data Source < Resource), then sort by <ProviderName>_<Type>.<Name>
| # 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 |
Suggestion 1:
→ At the beginning inside the <URL> (as in the terraform registry, or at the end with format like ASCII document format for example)
→ Always sort by <Mode> (Data Source < Resource), then sort by <ProviderName>_<Type>.<Name>