【问题标题】:Getting error for `gcloud auth print-identity-token` command on my gcloud shell在我的 gcloud shell 上出现“gcloud auth print-identity-token”命令错误
【发布时间】:2020-09-13 16:36:23
【问题描述】:
gcloud auth print-identity-token
ERROR: (gcloud.auth.print-identity-token) No identity token can be obtained from the current credentials.

gcloud auth list,我可以将我的帐户视为活动帐户(用户帐户)。 我正在云壳上尝试这个。 注意 - 这是之前的工作,我能够从这个命令生成 JWT 令牌。

【问题讨论】:

  • 尝试重启 Cloud Shell 实例 (VM)。
  • 已经试过了。还是一样的错误。

标签: google-cloud-platform google-cloud-iam google-cloud-shell


【解决方案1】:

此问题已在此PIT thread 中报告,您可以在此处跟踪和跟进。

【讨论】:

    【解决方案2】:

    Kumar Shaswat

    今天我用Google Cloud SDK 310.0.0再次尝试了这个,发现在Cloud Shell我可以运行命令$ gcloud auth print-identity-token

    因此要求您检查$ gcloud version并重试。

    【讨论】:

    • 还有PIT 确保这个问题现在得到修复
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-12-08
    • 2018-10-05
    • 1970-01-01
    • 2021-09-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多