File tree 6 files changed +19
-21
lines changed
2-networking-a-simple/data
2-networking-c-separate-envs/data
tests/fast/stages/s0_bootstrap
6 files changed +19
-21
lines changed Original file line number Diff line number Diff line change @@ -328,18 +328,15 @@ module "automation-tf-vpcsc-sa" {
328
328
name = var. resource_names [" sa-vpcsc" ]
329
329
display_name = " Terraform stage 1 vpcsc service account."
330
330
prefix = var. prefix
331
- # allow SA used by CI/CD workflow to impersonate this SA
331
+ # allow security group and SA used by CI/CD workflow to impersonate this SA
332
332
iam = {
333
- " roles/iam.serviceAccountTokenCreator" = [
334
- for k , v in local . cicd_repositories :
335
- module.automation- tf- cicd- sa[k].iam_email if v . stage == " vpcsc"
336
- ]
337
- }
338
- iam_bindings_additive = {
339
- security_admins = {
340
- member = local.principals[" gcp-security-admins" ]
341
- role = " roles/iam.serviceAccountTokenCreator"
342
- }
333
+ " roles/iam.serviceAccountTokenCreator" = concat (
334
+ [local . principals [" gcp-security-admins" ]],
335
+ [
336
+ for k , v in local . cicd_repositories :
337
+ module . automation-tf-cicd-sa [k ]. iam_email if v . stage == " vpcsc"
338
+ ]
339
+ )
343
340
}
344
341
iam_storage_roles = {
345
342
(module. automation-tf-output-gcs . name ) = [" roles/storage.admin" ]
Original file line number Diff line number Diff line change 1
1
# skip boilerplate check
2
2
---
3
- # Terraform will be unable to decode this file if it does not contain valid YAML
4
- # You can retain `---` (start of the document) to indicate an empty document.
3
+ # start of document (---) avoids errors if the file only contains comments
4
+
5
+ # yaml-language-server: $schema=../schemas/firewall-policy-rules.schema.json
5
6
6
7
# allow-admins:
7
8
# description: Access from the admin subnet to all subnets
Original file line number Diff line number Diff line change 1
1
# skip boilerplate check
2
2
---
3
- # Terraform will be unable to decode this file if it does not contain valid YAML
4
- # You can retain `---` (start of the document) to indicate an empty document.
3
+ # start of document (---) avoids errors if the file only contains comments
4
+
5
+ # yaml-language-server: $schema=../schemas/firewall-policy-rules.schema.json
5
6
6
7
# allow-admins:
7
8
# description: Access from the admin subnet to all subnets
Original file line number Diff line number Diff line change 1
1
# skip boilerplate check
2
2
---
3
- # Terraform will be unable to decode this file if it does not contain valid YAML
4
- # You can retain `---` (start of the document) to indicate an empty document.
3
+ # start of document (---) avoids errors if the file only contains comments
4
+
5
+ # yaml-language-server: $schema=../schemas/firewall-policy-rules.schema.json
5
6
6
7
# allow-admins:
7
8
# description: Access from the admin subnet to all subnets
Original file line number Diff line number Diff line change @@ -346,7 +346,6 @@ counts:
346
346
google_project_service_identity : 7
347
347
google_service_account : 12
348
348
google_service_account_iam_binding : 12
349
- google_service_account_iam_member : 1
350
349
google_storage_bucket : 4
351
350
google_storage_bucket_iam_binding : 4
352
351
google_storage_bucket_iam_member : 12
@@ -356,4 +355,4 @@ counts:
356
355
google_tags_tag_value : 2
357
356
local_file : 13
358
357
modules : 26
359
- resources : 272
358
+ resources : 271
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ counts:
31
31
google_project_service_identity : 7
32
32
google_service_account : 6
33
33
google_service_account_iam_binding : 6
34
- google_service_account_iam_member : 1
35
34
google_storage_bucket : 4
36
35
google_storage_bucket_iam_binding : 4
37
36
google_storage_bucket_iam_member : 6
@@ -41,7 +40,7 @@ counts:
41
40
google_tags_tag_value : 2
42
41
local_file : 8
43
42
modules : 20
44
- resources : 235
43
+ resources : 234
45
44
46
45
outputs :
47
46
automation : __missing__
You can’t perform that action at this time.
0 commit comments