# Generated by tools/hardened.py from ../t1. Edit t1 or the script; this file is regenerated. variable "org_id" { description = "Numeric organisation ID." type = string } variable "access_policy" { description = "The access policy the perimeter belongs to, as accessPolicies/. gcloud access-context-manager policies list --organization shows it." type = string validation { condition = can(regex("^accessPolicies/[0-9]+$", var.access_policy)) error_message = "access_policy looks like accessPolicies/123456789." } } variable "perimeter_name" { description = "Short name for the perimeter: letters, digits, and underscores, starting with a letter." type = string default = "sensitive_data" } variable "project_numbers" { description = "Project numbers of the projects inside the perimeter: the all-digit identifier, such as 123456789012. gcloud projects describe --format='value(projectNumber)' shows one." type = list(string) } variable "restricted_services" { description = "APIs the perimeter protects. Each one refuses calls from outside and sends nothing out." type = list(string) default = [ "storage.googleapis.com", "bigquery.googleapis.com", "bigquerystorage.googleapis.com", "secretmanager.googleapis.com", "cloudkms.googleapis.com", "pubsub.googleapis.com", "spanner.googleapis.com", "sqladmin.googleapis.com", ] } variable "dry_run" { description = "Log every call the perimeter would refuse, without refusing it. Leave on until the violations log shows only what you mean to stop." type = bool default = true } variable "office_ranges" { description = "Public address ranges people work from, as CIDR. Requests from them may enter the perimeter. Empty skips this." type = list(string) default = [] } variable "admin_identities" { description = "Identities that may call in from anywhere, such as a deployment pipeline's service account. Each is a way in, so keep the list short." type = list(string) default = [] } variable "allowed_egress" { description = "Projects outside the perimeter that may receive data, as project number = list of services, such as a partner's bucket or a backup project." type = map(list(string)) default = {} } variable "security_project" { description = "Project containing the violations log bucket and alert." type = string } variable "alert_emails" { description = "Addresses told about every violation, in dry run or enforced." type = list(string) } variable "owner" { description = "Label contract: accountable team. Lowercase, because labels must be." type = string default = "security-engineering" } variable "environment" { description = "Label contract: environment." type = string default = "prod" } variable "extra_labels" { description = "Additional labels merged over the contract." type = map(string) default = {} }