hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.25k stars 1.7k forks source link

Add support for Cloud Logging Log Buckets #16558

Open haizaar opened 8 months ago

haizaar commented 8 months ago

Attempting to revive https://github.com/hashicorp/terraform-provider-google/issues/11572 as per the comment.

The originally suggested design fully corresponds to the rest resource so I'm not sure why the original issue was closed in favour of google_logging_project_bucket_config - it's something completely different.

Hopefully the original issues can be unlocked, reopened, and implemented.

Thank you.

b/312432961

rileykarson commented 8 months ago

I thought this resource could create buckets too, but it doesn't seem to be able to.

pengq-google commented 8 months ago

We can use google_logging_project_bucket_config to create a log bucket. Have consulted with the Terraform team that we have to keep using that name.

There may be a bug that sometimes for some version of Terraform that google_logging_project_bucket_config can only modify a log bucket, I am still debugging it. (it happens to me now and then)