Adding new section for Authentication issues

Common error when we have multiple identities
This commit is contained in:
agutta 2022-12-28 12:06:13 -06:00 committed by GitHub
parent 39242c3947
commit 5120df1615
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 4 deletions

View File

@ -15,9 +15,14 @@
<img src="IaC_SA.png" alt="CICD SA and IaC SA">
</p>
## Authenciation
1. If you are seeing "Permission Issues" when doing terraform apply and the identity with which you are running terraform has correct permissions;
run below command so that correct auth credentials are picked by ADC when terraform commands are executed
````
gcloud auth application-default login
````
Refer to [GCP Authentication](https://cloud.google.com/docs/authentication
) and [Terraform Provider](https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/provider_reference) for more information