Terraform with GCP permissions

672 views
Skip to first unread message

Hadas Yadayi

unread,
Oct 11, 2021, 4:31:04 AM10/11/21
to Google Cloud Developers
Hi Guys, 
I tried to connect terraform to my GCP account and i got permissions error 
who can help with - which role i need to add to my GCP account or service account to solve it ?

i got this error after i run the command : "terraform apply" (the commands :terraform init, plan - works...)



thanks!
Hadas 

error - terraform.PNG

Konstantin Tarkus

unread,
Jan 28, 2022, 6:05:18 AM1/28/22
to Google Cloud Developers
I just add Editor and Service Usage Admin roles to the service account that I add to Terraform (terraform@<project>.iam.gserviceaccount.com) via GOOGLE_CREDENTIALS environment variable.

Reply all
Reply to author
Forward
0 new messages