diff --git a/gcp/connection_config.go b/gcp/connection_config.go index 776d38ab..fe5c986f 100644 --- a/gcp/connection_config.go +++ b/gcp/connection_config.go @@ -7,7 +7,6 @@ import ( type gcpConfig struct { Project *string `hcl:"project"` Credentials *string `hcl:"credentials"` - CredentialFile *string `hcl:"credential_file"` ImpersonateAccessToken *string `hcl:"impersonate_access_token"` ImpersonateServiceAccount *string `hcl:"impersonate_service_account"` IgnoreErrorCodes []string `hcl:"ignore_error_codes,optional"` diff --git a/gcp/utils.go b/gcp/utils.go index bde36a1c..1737e7fd 100644 --- a/gcp/utils.go +++ b/gcp/utils.go @@ -196,10 +196,7 @@ func setSessionConfig(ctx context.Context, connection *plugin.Connection) []opti panic(err) } opts = append(opts, option.WithCredentialsJSON([]byte(contents))) - } else if gcpConfig.CredentialFile != nil { - opts = append(opts, option.WithCredentialsFile(*gcpConfig.CredentialFile)) } - if gcpConfig.ImpersonateAccessToken != nil { tokenConfig := oauth2.Token{ AccessToken: *gcpConfig.ImpersonateAccessToken,