Closed as not planned
Description
TL;DR
When running an initial deployment for cloud-build. During the deployment of SCC resources for CAI monitoring terraform fails.
Error: Error creating NotificationConfig: googleapi: Error 400: This API is no longer available. Please use API V2.
with google_scc_notification_config.scc_notification_config,
on scc_notification.tf line 32, in resource "google_scc_notification_config" "scc_notification_config":
32: resource "google_scc_notification_config" "scc_notification_config" {
Error: Error creating Source: googleapi: Error 400: This API is no longer available. Please use API V2.
with module.cai_monitoring.google_scc_source.cai_monitoring,
on ../../modules/cai-monitoring/main.tf line 136, in resource "google_scc_source" "cai_monitoring":
136: resource "google_scc_source" "cai_monitoring" {
Expected behavior
Expected behaviour is for the resources to be created as intended
Observed behavior
Resource creation failed due to the API not being supported.
Terraform Configuration
/**
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
# Must include the domain of the organization you are deploying the foundation.
domains_to_allow = ["example.co.uk"]
essential_contacts_domains_to_allow = ["@example.co.uk"]
scc_notification_name = "scc-notify"
remote_state_bucket = "remote-state-bucket"
//scc_notification_filter = "state=\\\"ACTIVE\\\""
//enable_hub_and_spoke = true
//create_access_context_manager_access_policy = false
// Optional - If you are deploying Foundation Example in a parent folder
// consider using below create_unique_tag_key var because as Tag Keys are
// unique organization-wide it will add a random suffix at each tag key
//create_unique_tag_key = true
Terraform Version
Terraform v1.3.0
on darwin_arm64
Additional information
I have deployed standard tier SCC in the Organization as per https://github.com/umbrl-limited/umbrl-infra/blob/main/1-org/README.md#prerequisites