gcpArchived
1 messages
Google Cloud Platform
Reinholds Zviedrisabout 5 years ago(edited)
Hey all! Having an issue with running
When I run
terraform init / terraform plan as service account on Google Cloud. It has necessary rights for backend bucket where state is stored. Have authenticated against GCP with SA key and account is set as default.gcloud auth list output: Credentialed Accounts
ACTIVE ACCOUNT
* <mailto:service-account@project.iam.gserviceaccount.com|service-account@project.iam.gserviceaccount.com>
<mailto:my.user@domain.com|my.user@domain.com>gcloud config list output:[compute]
region = us-east1
zone = us-east1-d
[core]
account = <mailto:service-account@project.iam.gserviceaccount.com|service-account@project.iam.gserviceaccount.com>
disable_usage_reporting = True
project = project
Your active configuration is: [default]When I run
terraform init / terraform plan then it’s run using <mailto:my.user@domain.com|my.user@domain.com> instead of SA (That I see from activity log in GCP console about infra bucket access). Anyone had something similar and could advice what to do and where to proceed? 🤔 Any help would be appreciated. Tried already couple of suggestions from what I found on net, but no luck.