Refactor service agent management (#2423)
* Service agents script * Service agents update * WIP * Update script and terraform * Fix tests * Fix linter * Update docs * Bring back pf example inventory * Fix tests * Fix more tests * Fix tests * Use dataclasses for build_service_agents.py * Remove unneeded field() from build_service_agents * Re-enable CMEK depends_on in project outputs * Update tools/requirements.txt * Enable storage in GCS example projects * Fix tests * Add CMEK Service Agents dependencies for services * Fix typos and data platform cmek * More typos
This commit is contained in:
@@ -253,7 +253,7 @@ module "test" {
|
||||
prj_onprem_id = "onprem-project-id"
|
||||
}
|
||||
|
||||
# tftest modules=15 resources=50
|
||||
# tftest modules=15 resources=58
|
||||
```
|
||||
|
||||
```hcl
|
||||
@@ -277,7 +277,7 @@ module "test" {
|
||||
tf_identity = "user@example.org"
|
||||
}
|
||||
|
||||
# tftest modules=15 resources=36
|
||||
# tftest modules=15 resources=44
|
||||
```
|
||||
|
||||
```hcl
|
||||
@@ -296,5 +296,5 @@ module "test" {
|
||||
custom_domain = "cloud-run-corporate.example.org"
|
||||
}
|
||||
|
||||
# tftest modules=14 resources=45
|
||||
# tftest modules=14 resources=57
|
||||
```
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Copyright 2023 Google LLC
|
||||
* Copyright 2024 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -103,7 +103,7 @@ module "project_svc1" {
|
||||
parent = try(var.prj_svc1_create.parent, null)
|
||||
shared_vpc_service_config = {
|
||||
host_project = module.project_main.project_id
|
||||
service_identity_iam = {
|
||||
service_agent_iam = {
|
||||
"roles/compute.networkUser" = [
|
||||
"vpcaccess"
|
||||
],
|
||||
|
||||
@@ -223,5 +223,5 @@ module "test" {
|
||||
}
|
||||
}
|
||||
|
||||
# tftest modules=4 resources=19
|
||||
# tftest modules=4 resources=22
|
||||
```
|
||||
|
||||
@@ -201,7 +201,7 @@ module "test" {
|
||||
}
|
||||
}
|
||||
|
||||
# tftest modules=7 resources=22
|
||||
# tftest modules=7 resources=29
|
||||
```
|
||||
|
||||
```hcl
|
||||
@@ -225,5 +225,5 @@ module "test" {
|
||||
}
|
||||
}
|
||||
|
||||
# tftest modules=10 resources=32
|
||||
# tftest modules=10 resources=42
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user