Google cloud platform 如何分配读卡器角色-storage.objects.get

Google cloud platform 如何分配读卡器角色-storage.objects.get,google-cloud-platform,google-cloud-storage,terraform,Google Cloud Platform,Google Cloud Storage,Terraform,需要有关Terraform的GCP存储方面的帮助 如何在GCP云存储中分配所有对象(未来和当前)的读卡器角色。我需要storage.objects.get来创建对象吗 resource "google_storage_object_acl" "assign_objects_reader_role_on_my_storage_bucket" { object = google_storage_bucket_object.objects.outpu

需要有关Terraform的GCP存储方面的帮助

如何在GCP云存储中分配所有对象(未来和当前)的读卡器角色。我需要
storage.objects.get
来创建对象吗

resource "google_storage_object_acl" "assign_objects_reader_role_on_my_storage_bucket" {
      object = google_storage_bucket_object.objects.output_name
      bucket = my_storage_bucket.name
      role = ["READER"]
      user = "my_user"
}

-google\u storage\u bucket\u object.object.output\u name的值应该是多少?

角色-存储遗留对象读取器角色/storage.legacyObjectReader

Description-授予查看对象及其元数据的权限,不包括ACL


权限-storage.objects.get

这是否意味着:
角色:角色/storage.legacyObjectReader
权限:storage.objects.get
?是的,你说得对@YoManTaMero