Hello All,
I am going to create GCP infrastructure with terraform by using gitlab CICD by using workload identity federation as credentials.
Before terraform apply I need to check that is bucket exists for terraform remote backend if not then it will create bucket, for this I am using gsutil command to list down all buckets in project.
But with WIF & service account it is showing authenticated, also when I am running terraform plan,It is showing all infrastructure which is going to create but for gsutil command it is asking for gcloud auth login.
As I have already authenticate this with service account & WIF still it is asking for to login through cloud auth.
Can we list gcp bucket with WIF & SA?
Is there any alternative option?
Can anyone help me out in this?
Hello @lalitkharat,
Welcome to Google Cloud Community!
You can try using this as your reference. Managing infrastructure as code with Terraform,