# data-perimeter / gcp / t2 "Hardened" # Generated by tools/hardened.py from ../t1. Edit t1 or the script; this file is regenerated. # # Standard, unchanged, used as a module, so there is one copy of the logic. # What Hardened adds sits beside it: # policy/ rules checked against every plan; a plan that breaks one fails # guard.yml plan and policy on every pull request, and a daily drift check # .checkov.yml the security scan set to fail, each skipped check with its reason; # run it against ../t1, where the resources are: # checkov -d ../t1 --config-file .checkov.yml # # Keep ../t1 next to this folder. Put your settings in terraform.tfvars here. # # Check a plan against the rules yourself: # terraform plan -out plan.out && terraform show -json plan.out > plan.json # opa eval --fail-defined --format pretty -d policy -i plan.json 'data.iac.deny[msg]' # Nothing printed means every rule passed. module "standard" { source = "../t1" org_id = var.org_id access_policy = var.access_policy perimeter_name = var.perimeter_name project_numbers = var.project_numbers restricted_services = var.restricted_services dry_run = var.dry_run office_ranges = var.office_ranges admin_identities = var.admin_identities allowed_egress = var.allowed_egress security_project = var.security_project alert_emails = var.alert_emails owner = var.owner environment = var.environment extra_labels = var.extra_labels }