【发布时间】:2021-09-26 12:34:37
【问题描述】:
服务帐户拥有创建 vm 实例的所有权限(服务帐户用户、项目所有者、项目编辑者)。当我运行 terraform 时,会发生这种情况:
│ Error: Error waiting for instance to create: The user does not have access to service account 'mymail@gmail.com'. User: 'terraform@direct-keel-275713.iam.gserviceaccount.com'. Ask a project owner to grant you the iam.serviceAccountUser role on the service account
│
│
│ with module.vm.google_compute_instance.icinga,
│ on modules/vm/main.tf line 23, in resource "google_compute_instance" "icinga":
│ 23: resource "google_compute_instance" "icinga" {
【问题讨论】:
标签: google-cloud-platform terraform virtual-machine terraform-provider-gcp