Commit c1a7e13 1 parent 1f1fbc3 commit c1a7e13 Copy full SHA for c1a7e13
File tree 2 files changed +8
-2
lines changed
modules/svpc_service_project
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -81,12 +81,15 @@ module "shared_vpc_access" {
81
81
enable_shared_vpc_service_project = var. svpc_host_project_id != " " ? true : false
82
82
host_project_id = var. svpc_host_project_id
83
83
service_project_id = module. project-factory . project_id
84
- active_apis = module . project-factory . enabled_apis
84
+ active_apis = var . activate_apis
85
85
shared_vpc_subnets = var. shared_vpc_subnets
86
86
service_project_number = module. project-factory . project_number
87
87
lookup_project_numbers = false
88
88
grant_services_security_admin_role = var. grant_services_security_admin_role
89
89
grant_network_role = var. grant_network_role
90
+ # Workaround for import complaining about count cannot determine resource instances
91
+ # until apply. https://github.com/hashicorp/terraform/issues/24690
92
+ depends_on = [module . project-factory . enabled_apis ]
90
93
}
91
94
92
95
/* *****************************************
Original file line number Diff line number Diff line change @@ -69,12 +69,15 @@ module "shared_vpc_access" {
69
69
host_project_id = var. shared_vpc
70
70
enable_shared_vpc_service_project = true
71
71
service_project_id = module. project-factory . project_id
72
- active_apis = module . project-factory . enabled_apis
72
+ active_apis = var . activate_apis
73
73
shared_vpc_subnets = var. shared_vpc_subnets
74
74
service_project_number = module. project-factory . project_number
75
75
lookup_project_numbers = false
76
76
grant_services_security_admin_role = var. grant_services_security_admin_role
77
77
grant_network_role = var. grant_network_role
78
+ # Workaround for import complaining about count cannot determine resource instances
79
+ # until apply. https://github.com/hashicorp/terraform/issues/24690
80
+ depends_on = [module . project-factory . enabled_apis ]
78
81
}
79
82
80
83
/* *****************************************
You can’t perform that action at this time.
0 commit comments