2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

[OIDC] GitHub ActionsでGCPにTerraformを使ってデプロイする際はバージョンに注意

Posted at

OpenID Connect (OIDC) の設定をしているときにハマったので掲載。

Terraformを使ってGoogle CloudリソースのデプロイをしているGitHub Actionsの設定ファイルに、OIDCを使って認証情報を取得しようとした際にこのようなエラーが出た。

Error: google: error getting credentials using GOOGLE_APPLICATION_CREDENTIALS
environment variable: unknown credential type: "external_account"

解決策:terraform-provider-googleのバージョンを3.61.0以上に上げる必要があった。

terraform {
  required_providers {
    google = {
      source  = "hashicorp/google"
      version = "~> 3.61.0"
    }
  }
}

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?