Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
1a4b372
add service usage consumer role to SA's
mariammartins Aug 4, 2025
21f33bb
add cicd and seed output prjs numbers
mariammartins Aug 4, 2025
aee66cb
add cloud nat
mariammartins Aug 4, 2025
21b32d4
add service control module
mariammartins Aug 4, 2025
ddc929b
add cicd, seed and parent_id ouputs
mariammartins Aug 4, 2025
1651277
add new nariables related to vpc-sc
mariammartins Aug 4, 2025
b701d6e
add perimeter adittional members variable
mariammartins Aug 4, 2025
d3771c4
upd README
mariammartins Aug 4, 2025
85178d9
add service control file
mariammartins Aug 4, 2025
97d9f6b
add depends on in projects.tf
mariammartins Aug 4, 2025
e0186cb
add SA builder cloud function
mariammartins Aug 4, 2025
c100a00
add access context manager in org_policy.tf
mariammartins Aug 4, 2025
55ad04a
add access context manager policy id variable
mariammartins Aug 4, 2025
7887d10
updt README
mariammartins Aug 4, 2025
948a08f
add log sinks identities outputs
mariammartins Aug 4, 2025
f4b0a95
upd README
mariammartins Aug 4, 2025
3ce8b8d
upd README with new instructions
mariammartins Aug 4, 2025
4144682
add enforce_vpcsc in remote.tf
mariammartins Aug 4, 2025
ff20ec1
add kms prjs in vpc-sc
mariammartins Aug 4, 2025
c6f1ed5
add secrets prjs in vpc-sc
mariammartins Aug 4, 2025
75e9207
rm all related to vpc-sc
mariammartins Aug 4, 2025
6d1421e
rm vpc-sc
mariammartins Aug 4, 2025
d7faa72
fix networks READMES
mariammartins Aug 4, 2025
b1c3370
add projects to perimeter
mariammartins Aug 4, 2025
03fc14c
add roles/iam.serviceAccountAdmin proj SA folder level
mariammartins Aug 4, 2025
5ac971b
upd README with required directional rules instructions to add
mariammartins Aug 5, 2025
1a09eea
updt README with add direcional rule instructions
mariammartins Aug 5, 2025
244f850
Initialize policy library repo
mariammartins Aug 6, 2025
1a638eb
rm enforce_vpc-sc variable from service_control.tf
mariammartins Aug 6, 2025
bb808b3
add directional policies variables keys
mariammartins Aug 6, 2025
1204991
updt cloud function source
mariammartins Aug 6, 2025
3e40d6f
fix direcitional policies with maps
mariammartins Aug 6, 2025
a2fd29f
add outputs 1-org
mariammartins Aug 6, 2025
7af8f37
add network_hub in projects list and keys
mariammartins Aug 6, 2025
3bde870
fix README, service_control.tf and rm bootstrap files
mariammartins Aug 7, 2025
04cb167
fix lint
mariammartins Aug 7, 2025
ddb47b5
rm backend.tf file
mariammartins Aug 7, 2025
3b3b7bf
add terraform.example.tfvars
mariammartins Aug 7, 2025
6210632
fix README
mariammartins Aug 7, 2025
8999cd4
fixes 1-0rg
mariammartins Aug 7, 2025
e6980a0
fix hub and spoke network README
mariammartins Aug 7, 2025
0053fda
rm duplicate
mariammartins Aug 7, 2025
358b144
fix README
mariammartins Aug 7, 2025
66b6bc2
fix 4-projects README
mariammartins Aug 7, 2025
df5208f
add outputs descriptions and fix READMES
mariammartins Aug 7, 2025
a68fe3b
add comment in cloud function module
mariammartins Aug 8, 2025
a5e3449
add subnet_region variable
mariammartins Aug 8, 2025
ed7a022
rm access context manager policy id in network steps
mariammartins Aug 8, 2025
001aae2
fix lint
mariammartins Aug 8, 2025
c799997
update gcp-bootstrap pwd instructions
mariammartins Aug 11, 2025
5815876
add directional policies keys variables
mariammartins Aug 11, 2025
38ea3ea
fix gcp-bootstrap pwd in READMES
mariammartins Aug 11, 2025
879c02d
updt vpc-sc module version 7.1.3
mariammartins Aug 12, 2025
53961bc
add required ingress rules app infra variables flag
mariammartins Aug 12, 2025
b9fd55a
rm access_context_auto symbolic link
mariammartins Aug 12, 2025
dc31857
fix data outputs and add org remote state
mariammartins Aug 12, 2025
6659152
add blank line
mariammartins Aug 12, 2025
c021081
fix outputs remote.tf
mariammartins Aug 13, 2025
29f88dc
add required egress rule app infra variables and intructions to set
mariammartins Aug 13, 2025
0a595d8
change instructions 4-projects README
mariammartins Aug 13, 2025
67f87a7
fix README
mariammartins Aug 13, 2025
afbb1c2
add required ingress rules app infra
mariammartins Aug 14, 2025
136e1bb
add keys local ingress policies
mariammartins Aug 14, 2025
2f7c32e
add peering project number outputs
mariammartins Aug 14, 2025
cfb2631
add required ingress rules ap infra instruction
mariammartins Aug 14, 2025
118277c
fix lint
mariammartins Aug 14, 2025
8d21c89
add VPC SC troubleshooting
mariammartins Aug 14, 2025
6cc1ea5
fix lint
mariammartins Aug 14, 2025
eb7df3d
rm cai monitoring output
mariammartins Aug 15, 2025
31f094a
rm access context file
mariammartins Aug 18, 2025
b7bc940
fix syntax
mariammartins Aug 18, 2025
4dd750c
fix replace
mariammartins Aug 18, 2025
058c13e
add peering project number outputs
mariammartins Aug 18, 2025
da02dc2
Updt 1-org README and fix 4-projects README directional policies app …
mariammartins Aug 18, 2025
1fa041f
fix egress policies keys
mariammartins Aug 18, 2025
c68d62b
fix scc ingress rule and keys
mariammartins Aug 21, 2025
8df3dc7
fix helper
mariammartins Aug 21, 2025
917ee6c
fix network hub and README hub and spoke
mariammartins Aug 22, 2025
d779ab7
add directional policies title
mariammartins Aug 22, 2025
abb342b
fix bash commands
mariammartins Aug 26, 2025
9855e0e
rm scc
mariammartins Aug 28, 2025
21540a6
add outputs
mariammartins Aug 28, 2025
7c19dee
updt integration tests
mariammartins Aug 28, 2025
b492dd0
fix floating project number output
mariammartins Aug 29, 2025
102c7cd
Merge branch 'main' into refactor/one-default-common-perimeter
mariammartins Aug 29, 2025
4cda003
fix bootstrap test
mariammartins Sep 1, 2025
7cd5b38
fix retry message network connection
mariammartins Sep 2, 2025
5c2f8c6
add directional policies titles
mariammartins Sep 3, 2025
531bb6b
add rm dry run config when enforced perimeter
mariammartins Sep 4, 2025
f5661e3
fix directional policies variables integration tests
mariammartins Sep 4, 2025
b73de7f
fix json format commands
mariammartins Sep 4, 2025
38c1b04
add --format
mariammartins Sep 5, 2025
9678337
fix gcloud perimeter describe command
mariammartins Sep 8, 2025
a7ef590
fix integration tests
mariammartins Sep 8, 2025
5a3689e
add env_secrets_project_number output in 2-envs
mariammartins Sep 10, 2025
ec54c53
rm access context manager variable references in bootstrap README
mariammartins Sep 11, 2025
834e448
rm access context manager varible in test files
mariammartins Sep 11, 2025
98d570e
rm access context manager variable references in hub and spoke README
mariammartins Sep 11, 2025
0ffcbe0
add warning to directional policies dry run variables
mariammartins Sep 11, 2025
b3490ab
add warning to disable dry run directional rules variable before enfo…
mariammartins Sep 11, 2025
12e002e
merge with main
mariammartins Sep 12, 2025
88fff0b
fix lint
mariammartins Sep 12, 2025
1705bcc
Merge branch 'main' into refactor/one-default-common-perimeter
mariammartins Sep 15, 2025
14008d2
rm access context and perimeter variables in shared test
mariammartins Sep 18, 2025
aa8715c
Merge branch 'main' into refactor/one-default-common-perimeter
mariammartins Sep 18, 2025
6ec4b45
updt bootstrap module
mariammartins Sep 18, 2025
dd27a7e
fix service perimeter name in projects_test.go
mariammartins Sep 18, 2025
b36fc8d
upd bootstrap module
mariammartins Sep 18, 2025
a054a54
add floating prj number output
mariammartins Sep 20, 2025
99b097e
add dot in OAuth retry messsage error
mariammartins Sep 22, 2025
255a3ed
add depends_on
mariammartins Sep 22, 2025
55e4f5b
fix retry message error
mariammartins Sep 22, 2025
0c201c7
add deletion_protection variabel in folder resources 1-org, updt serv…
mariammartins Sep 22, 2025
62f725f
add depends on for cloud build nat instance
mariammartins Sep 23, 2025
5295db9
fix bootstrap module version
mariammartins Sep 29, 2025
8734775
Merge branch 'main' into refactor/one-default-common-perimeter
mariammartins Sep 30, 2025
589b590
updt documentai.googleapis.com service
mariammartins Oct 2, 2025
4fa07fc
fix required directional policies keys and roles list
mariammartins Oct 2, 2025
cd6dde4
merge main
mariammartins Oct 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions 0-bootstrap/README-GitHub.md
Original file line number Diff line number Diff line change
Expand Up @@ -565,12 +565,11 @@ or go to [Deploying step 3-networks-hub-and-spoke](#deploying-step-3-networks-hu
chmod 755 ./tf-wrapper.sh
```

1. Rename `common.auto.example.tfvars` to `common.auto.tfvars`, rename `production.auto.example.tfvars` to `production.auto.tfvars` and rename `access_context.auto.example.tfvars` to `access_context.auto.tfvars`.
1. Rename `common.auto.example.tfvars` to `common.auto.tfvars`, and rename `production.auto.example.tfvars` to `production.auto.tfvars`.

```bash
mv common.auto.example.tfvars common.auto.tfvars
mv production.auto.example.tfvars production.auto.tfvars
mv access_context.auto.example.tfvars access_context.auto.tfvars
```

1. Update the file `production.auto.tfvars` with the values for the `target_name_server_addresses`.
Expand Down Expand Up @@ -665,7 +664,7 @@ An environment variable `GOOGLE_IMPERSONATE_SERVICE_ACCOUNT` will be set with th

1. Push your production branch since development and nonproduction depends it.

*Note:** The Production envrionment must be the first branch to be pushed as it includes the DNS Hub communication that will be used by other environments.
*Note:** The Production environment must be the first branch to be pushed as it includes the DNS Hub communication that will be used by other environments.

```bash
git add .
Expand Down Expand Up @@ -762,12 +761,11 @@ An environment variable `GOOGLE_IMPERSONATE_SERVICE_ACCOUNT` will be set with th
chmod 755 ./tf-wrapper.sh
```

1. Rename `common.auto.example.tfvars` to `common.auto.tfvars`, rename `shared.auto.example.tfvars` to `shared.auto.tfvars` and rename `access_context.auto.example.tfvars` to `access_context.auto.tfvars`.
1. Rename `common.auto.example.tfvars` to `common.auto.tfvars`, and rename `shared.auto.example.tfvars` to `shared.auto.tfvars`.

```bash
mv common.auto.example.tfvars common.auto.tfvars
mv shared.auto.example.tfvars shared.auto.tfvars
mv access_context.auto.example.tfvars access_context.auto.tfvars
```

1. Update `common.auto.tfvars` file with values from your GCP environment.
Expand Down
8 changes: 3 additions & 5 deletions 0-bootstrap/README-GitLab.md
Original file line number Diff line number Diff line change
Expand Up @@ -568,12 +568,11 @@ or go to [Deploying step 3-networks-hub-and-spoke](#deploying-step-3-networks-hu
chmod 755 ./*.sh
```

1. Rename `common.auto.example.tfvars` to `common.auto.tfvars`, rename `production.auto.example.tfvars` to `production.auto.tfvars` and rename `access_context.auto.example.tfvars` to `access_context.auto.tfvars`.
1. Rename `common.auto.example.tfvars` to `common.auto.tfvars`, and rename `production.auto.example.tfvars` to `production.auto.tfvars`.

```bash
mv common.auto.example.tfvars common.auto.tfvars
mv production.auto.example.tfvars production.auto.tfvars
mv access_context.auto.example.tfvars access_context.auto.tfvars
```

1. Update the file `production.auto.tfvars` with the values for the `target_name_server_addresses`.
Expand Down Expand Up @@ -668,7 +667,7 @@ An environment variable `GOOGLE_IMPERSONATE_SERVICE_ACCOUNT` will be set with th

1. Push your production branch since development and nonproduction depends it.

*Note:** The Production envrionment must be the first branch to be pushed as it includes the DNS Hub communication that will be used by other environments.
*Note:** The Production environment must be the first branch to be pushed as it includes the DNS Hub communication that will be used by other environments.

```bash
git add .
Expand Down Expand Up @@ -742,12 +741,11 @@ An environment variable `GOOGLE_IMPERSONATE_SERVICE_ACCOUNT` will be set with th
chmod 755 ./*.sh
```

1. Rename `common.auto.example.tfvars` to `common.auto.tfvars`, rename `shared.auto.example.tfvars` to `shared.auto.tfvars` and rename `access_context.auto.example.tfvars` to `access_context.auto.tfvars`.
1. Rename `common.auto.example.tfvars` to `common.auto.tfvars`, and rename `shared.auto.example.tfvars` to `shared.auto.tfvars`.

```bash
mv common.auto.example.tfvars common.auto.tfvars
mv shared.auto.example.tfvars shared.auto.tfvars
mv access_context.auto.example.tfvars access_context.auto.tfvars
```

1. Update `common.auto.tfvars` file with values from your GCP environment.
Expand Down
6 changes: 2 additions & 4 deletions 0-bootstrap/README-Jenkins.md
Original file line number Diff line number Diff line change
Expand Up @@ -599,12 +599,11 @@ Here you will configure a VPN Network tunnel to enable connectivity between the
sed -i'' -e "s/CICD_PROJECT_ID/${CICD_PROJECT_ID}/" ./Jenkinsfile
```

1. Rename `common.auto.example.tfvars` to `common.auto.tfvars`, rename `production.auto.example.tfvars` to `production.auto.tfvars` and rename `access_context.auto.example.tfvars` to `access_context.auto.tfvars`.
1. Rename `common.auto.example.tfvars` to `common.auto.tfvars`, and rename `production.auto.example.tfvars` to `production.auto.tfvars`.

```bash
mv common.auto.example.tfvars common.auto.tfvars
mv production.auto.example.tfvars production.auto.tfvars
mv access_context.auto.example.tfvars access_context.auto.tfvars
```

1. Update `common.auto.tfvars` file with values from your environment and bootstrap. See any of the envs folder [README.md](../3-networks-svpc/envs/production/README.md) files for additional information on the values in the `common.auto.tfvars` file.
Expand Down Expand Up @@ -752,12 +751,11 @@ Here you will configure a VPN Network tunnel to enable connectivity between the
sed -i'' -e "s/CICD_PROJECT_ID/${CICD_PROJECT_ID}/" ./Jenkinsfile
```

1. Rename `common.auto.example.tfvars` to `common.auto.tfvars`, rename `shared.auto.example.tfvars` to `shared.auto.tfvars` and rename `access_context.auto.example.tfvars` to `access_context.auto.tfvars`.
1. Rename `common.auto.example.tfvars` to `common.auto.tfvars`, and rename `shared.auto.example.tfvars` to `shared.auto.tfvars`.

```bash
mv common.auto.example.tfvars common.auto.tfvars
mv shared.auto.example.tfvars shared.auto.tfvars
mv access_context.auto.example.tfvars access_context.auto.tfvars
```

1. Update `common.auto.tfvars` file with values from your environment and bootstrap. See any of the envs folder [README.md](../3-networks-hub-and-spoke/envs/production/README.md) files for additional information on the values in the `common.auto.tfvars` file.
Expand Down
6 changes: 2 additions & 4 deletions 0-bootstrap/README-Terraform-Cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -476,12 +476,11 @@ or go to [Deploying step 3-networks-hub-and-spoke](#deploying-step-3-networks-hu
chmod 755 ./tf-wrapper.sh
```

1. Rename `common.auto.example.tfvars` to `common.auto.tfvars`, rename `production.auto.example.tfvars` to `production.auto.tfvars` and rename `access_context.auto.example.tfvars` to `access_context.auto.tfvars`.
1. Rename `common.auto.example.tfvars` to `common.auto.tfvars`, and rename `production.auto.example.tfvars` to `production.auto.tfvars`.

```bash
mv common.auto.example.tfvars common.auto.tfvars
mv production.auto.example.tfvars production.auto.tfvars
mv access_context.auto.example.tfvars access_context.auto.tfvars
```

1. Update the file `production.auto.tfvars` with the values for the `target_name_server_addresses`.
Expand Down Expand Up @@ -639,12 +638,11 @@ An environment variable `GOOGLE_IMPERSONATE_SERVICE_ACCOUNT` will be set with th
chmod 755 ./tf-wrapper.sh
```

1. Rename `common.auto.example.tfvars` to `common.auto.tfvars`, rename `shared.auto.example.tfvars` to `shared.auto.tfvars` and rename `access_context.auto.example.tfvars` to `access_context.auto.tfvars`.
1. Rename `common.auto.example.tfvars` to `common.auto.tfvars`, and rename `shared.auto.example.tfvars` to `shared.auto.tfvars`.

```bash
mv common.auto.example.tfvars common.auto.tfvars
mv shared.auto.example.tfvars shared.auto.tfvars
mv access_context.auto.example.tfvars access_context.auto.tfvars
```

1. Update `common.auto.tfvars` file with values from your GCP environment.
Expand Down
3 changes: 3 additions & 0 deletions 0-bootstrap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,7 @@ The following steps will guide you through deploying without using Cloud Build.
| cloud\_build\_worker\_range\_id | The Cloud Build private worker IP range ID. |
| cloud\_builder\_artifact\_repo | Artifact Registry (AR) Repository created to store TF Cloud Builder images. |
| cloudbuild\_project\_id | Project where Cloud Build configuration and terraform container image will reside. |
| cloudbuild\_project\_number | The cloudbuild project number. |
| common\_config | Common configuration data to be used in other steps. |
| csr\_repos | List of Cloud Source Repos created by the module, linked to Cloud Build triggers. |
| environment\_step\_terraform\_service\_account\_email | Environment Step Terraform Account |
Expand All @@ -555,9 +556,11 @@ The following steps will guide you through deploying without using Cloud Build.
| networks\_step\_terraform\_service\_account\_email | Networks Step Terraform Account |
| optional\_groups | List of Google Groups created that are optional to the Example Foundation steps. |
| organization\_step\_terraform\_service\_account\_email | Organization Step Terraform Account |
| parent\_id | Parent ID service account. |
| projects\_gcs\_bucket\_tfstate | Bucket used for storing terraform state for stage 4-projects foundations pipelines in seed project. |
| projects\_step\_terraform\_service\_account\_email | Projects Step Terraform Account |
| required\_groups | List of Google Groups created that are required by the Example Foundation steps. |
| seed\_project\_id | Project where service accounts and core APIs will be enabled. |
| seed\_project\_number | The seed project number. |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
5 changes: 5 additions & 0 deletions 0-bootstrap/cb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -280,3 +280,8 @@ resource "google_sourcerepo_repository_iam_member" "member" {

depends_on = [module.tf_source]
}

data "google_project" "cloudbuild_project" {
project_id = module.tf_source.cloudbuild_project_id
depends_on = [module.tf_source]
}
5 changes: 5 additions & 0 deletions 0-bootstrap/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,8 @@ module "seed_bootstrap" {

depends_on = [module.required_group]
}

data "google_project" "seed_project" {
project_id = module.seed_bootstrap.seed_project_id
depends_on = [module.seed_bootstrap]
}
3 changes: 2 additions & 1 deletion 0-bootstrap/modules/cb-private-pool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| private\_worker\_pool | name: Name of the worker pool. A name with a random suffix is generated if not set.<br> region: The private worker pool region. See https://cloud.google.com/build/docs/locations for available locations.<br> disk\_size\_gb: Size of the disk attached to the worker, in GB.<br> machine\_type: Machine type of a worker.<br> no\_external\_ip: If true, workers are created without any public address, which prevents network egress to public IPs.<br> enable\_network\_peering: Set to true to enable configuration of networking peering for the private worker pool.<br> create\_peered\_network: If true a network will be created to stablish the network peering.<br> peered\_network\_id: The ID of the existing network to configure peering for the private worker pool if create\_peered\_network false. The project containing the network must have Service Networking API (`servicenetworking.googleapis.com`) enabled.<br> peered\_network\_subnet\_ip: The IP range to be used for the subnet that a will created in the peered network if create\_peered\_network true.<br> peering\_address: The IP address or beginning of the peering address range. This can be supplied as an input to reserve a specific address or omitted to allow GCP to choose a valid one.<br> peering\_prefix\_length: The prefix length of the IP peering range. If not present, it means the address field is a single IP address. | <pre>object({<br> name = optional(string, "")<br> region = optional(string, "us-central1")<br> disk_size_gb = optional(number, 100)<br> machine_type = optional(string, "e2-medium")<br> no_external_ip = optional(bool, false)<br> enable_network_peering = optional(bool, false)<br> create_peered_network = optional(bool, false)<br> peered_network_id = optional(string, "")<br> peered_network_subnet_ip = optional(string, "")<br> peering_address = optional(string, null)<br> peering_prefix_length = optional(number, 24)<br> })</pre> | `{}` | no |
| private\_worker\_pool | name: Name of the worker pool. A name with a random suffix is generated if not set.<br> region: The private worker pool region. See https://cloud.google.com/build/docs/locations for available locations.<br> disk\_size\_gb: Size of the disk attached to the worker, in GB.<br> machine\_type: Machine type of a worker.<br> no\_external\_ip: If true, workers are created without any public address, which prevents network egress to public IPs.<br> enable\_network\_peering: Set to true to enable configuration of networking peering for the private worker pool.<br> create\_peered\_network: If true a network will be created to stablish the network peering.<br> peered\_network\_id: The ID of the existing network to configure peering for the private worker pool if create\_peered\_network false. The project containing the network must have Service Networking API (`servicenetworking.googleapis.com`) enabled.<br> peered\_network\_subnet\_ip: The IP range to be used for the subnet that a will created in the peered network if create\_peered\_network true.<br> peering\_address: The IP address or beginning of the peering address range. This can be supplied as an input to reserve a specific address or omitted to allow GCP to choose a valid one.<br> peering\_prefix\_length: The prefix length of the IP peering range. If not present, it means the address field is a single IP address. | <pre>object({<br> name = optional(string, "")<br> region = optional(string, "us-central1")<br> disk_size_gb = optional(number, 100)<br> machine_type = optional(string, "e2-medium")<br> no_external_ip = optional(bool, true)<br> enable_network_peering = optional(bool, true)<br> create_peered_network = optional(bool, true)<br> peered_network_id = optional(string, "")<br> peered_network_subnet_ip = optional(string, "")<br> peering_address = optional(string, null)<br> peering_prefix_length = optional(number, 24)<br> })</pre> | `{}` | no |
| project\_id | ID of the project where the private pool will be created | `string` | n/a | yes |
| subnet\_region | Region where a subnet will be created in the sigle project network. | `string` | `"us-central1"` | no |
| vpc\_flow\_logs | aggregation\_interval: Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Possible values are: INTERVAL\_5\_SEC, INTERVAL\_30\_SEC, INTERVAL\_1\_MIN, INTERVAL\_5\_MIN, INTERVAL\_10\_MIN, INTERVAL\_15\_MIN.<br> flow\_sampling: Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. The value of the field must be in [0, 1].<br> metadata: Configures whether metadata fields should be added to the reported VPC flow logs. Possible values are: EXCLUDE\_ALL\_METADATA, INCLUDE\_ALL\_METADATA, CUSTOM\_METADATA.<br> metadata\_fields: ist of metadata fields that should be added to reported logs. Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" is set to CUSTOM\_METADATA.<br> filter\_expr: Export filter used to define which VPC flow logs should be logged, as as CEL expression. See https://cloud.google.com/vpc/docs/flow-logs#filtering for details on how to format this field. | <pre>object({<br> aggregation_interval = optional(string, "INTERVAL_5_SEC")<br> flow_sampling = optional(string, "0.5")<br> metadata = optional(string, "INCLUDE_ALL_METADATA")<br> metadata_fields = optional(list(string), [])<br> filter_expr = optional(string, "true")<br> })</pre> | `{}` | no |
| vpn\_configuration | enable\_vpn: set to true to create VPN connection to on prem. If true, the following values must be valid.<br> on\_prem\_public\_ip\_address0: The first public IP address for on prem VPN connection.<br> on\_prem\_public\_ip\_address1: The second public IP address for on prem VPN connection.<br> router\_asn: Border Gateway Protocol (BGP) Autonomous System Number (ASN) for cloud routes.<br> bgp\_peer\_asn: Border Gateway Protocol (BGP) Autonomous System Number (ASN) for peer cloud routes.<br> shared\_secret: The shared secret used in the VPN.<br> psk\_secret\_project\_id: The ID of the project that contains the secret from secret manager that holds the VPN pre-shared key.<br> psk\_secret\_name: The name of the secret to retrieve from secret manager that holds the VPN pre-shared key.<br> tunnel0\_bgp\_peer\_address: BGP peer address for tunnel 0.<br> tunnel0\_bgp\_session\_range: BGP session range for tunnel 0.<br> tunnel1\_bgp\_peer\_address: BGP peer address for tunnel 1.<br> tunnel1\_bgp\_session\_range: BGP session range for tunnel 1. | <pre>object({<br> enable_vpn = optional(bool, false)<br> on_prem_public_ip_address0 = optional(string, "")<br> on_prem_public_ip_address1 = optional(string, "")<br> router_asn = optional(number, 64515)<br> bgp_peer_asn = optional(number, 64513)<br> psk_secret_project_id = optional(string, "")<br> psk_secret_name = optional(string, "")<br> tunnel0_bgp_peer_address = optional(string, "")<br> tunnel0_bgp_session_range = optional(string, "")<br> tunnel1_bgp_peer_address = optional(string, "")<br> tunnel1_bgp_session_range = optional(string, "")<br> })</pre> | `{}` | no |

Expand Down
Loading