invalid_Grant or Invalid JWT signature errors in authenticating vault to GCP

Hi All,

I have been trying to create static account to create token/keys for service accounts in GCP. However , have been getting this error that I cannot seem to solve. Would appreciate your inputs and help on this one.

oauth2: cannot fetch token: 400 Bad Request
477│ Response: {“error”:“invalid_grant”,“error_description”:“Invalid JWT Signature.”}
478│
479│ with module.service_account[“tlc-bs-digital-mobile-npr-digital_mobile”].vault_gcp_secret_static_account.key[0],
480│ on modules/service-account/account.tf line 42, in resource “vault_gcp_secret_static_account” “key”:
481│ 42: resource “vault_gcp_secret_static_account” “key” {

It appears that this error can occur with GCP when the service account key is invalid; can you check that and try again? Thanks!

1 Like

Will give that a go. Thanks