【发布时间】:2021-08-25 21:57:30
【问题描述】:
请注意,此问题是 Terraform 问题。
当我查看 GCP 存储桶权限时,我发现 Google 建议通过全局设置阻止公开访问其中的对象。 As described here,看来我应该启用 constraints/storage.publicAccessPrevention 但我不知道如何(a)在我的项目中通常或(b)专门通过 Terraform 用于存储桶。
【问题讨论】:
-
这里的通用答案不如 Google 已经编写的文档。
-
@JohnHanley -- 好的,所以我想我不知何故没有沟通。问题是“我如何通过 Terraform 做到这一点”。我将修改描述部分以使其更清楚。
标签: google-cloud-platform terraform-provider-gcp