-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scc_notification_config: This API is no longer available. Please use API V2. #17893
Comments
Hi @daniel-cit! The linked reference was checked and as you reported this scenario was replicated from scratch with the shared steps to reproduce and with the provided terraform version 1.3.10. At the end of the process the result was successful and without errors. I recommend you to check your org tier as this link suggest, because the
|
Hi @ggtisc thanks for the response. As stated in this comment and in this comment Security Command Center has been enable in the organizations. In the first case SCC Premium has been enable in the organization and in the second one SCC standard has been enable in the organization. These are different organization and SCC had not been enable before. In both cases the resource As stated in a following comment for the second case, it is only possible to create the notification config using the gcloud command with the new option if we try to replace the service endpoint in the provider using
we got this error
Because the resource is trying to use the parent from V1 The parent from V2 is The terraform resource does not have a The Terraform resource should be able to do the same check that the |
FYI that this was also raised internally with b/335437367. We may also want to ultimately forward this issue as well, to highlight the Terraform issue specifically. |
It was successful for me but forward to service team to clarify |
Any progress on this? |
The service team is looking at this, with no specific timeline that I can see. Note that:
|
Community Note
Terraform Version
Terraform v1.3.10
on linux_amd64
Affected Resource(s)
Terraform Configuration
Debug Output
No response
Expected Behavior
SCC Notification config created
Actual Behavior
Error: Error creating NotificationConfig: googleapi: Error 400: This API is no longer available. Please use API V2.
Steps to reproduce
terraform apply
Important Factoids
In an organization that already has Security Command Center enable for some time:
gcloud
is able to create the SCC notification config.In an organization that Security Command Center enable has been just enable
gcloud
is able to create the SCC notification config if new option--location="global"
is used (https://cloud.google.com/security-command-center/docs/how-to-api-manage-notifications#create-config)References
terraform-google-modules/terraform-example-foundation#1189
b/335841742
The text was updated successfully, but these errors were encountered: