We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fe88da commit 494194cCopy full SHA for 494194c
helpers/foundation-deployer/main.go
@@ -34,7 +34,6 @@ import (
34
35
var (
36
validatorApis = []string{
37
- "securitycenter.googleapis.com",
38
"accesscontextmanager.googleapis.com",
39
}
40
)
@@ -116,6 +115,9 @@ func main() {
116
115
conf.ValidatorProject = *globalTFVars.ValidatorProjectId
117
var apis []string
118
gcpConf := gcp.NewGCP()
+ if globalTFVars.EnableSccResourcesInTerraform != nil && *globalTFVars.EnableSccResourcesInTerraform {
119
+ validatorApis = append(validatorApis, "securitycenter.googleapis.com")
120
+ }
121
for _, a := range validatorApis {
122
if !gcpConf.IsApiEnabled(t, *globalTFVars.ValidatorProjectId, a) {
123
apis = append(apis, a)
0 commit comments