terraform-google-modules/terraform-google-log-export

Error: google-beta does not support "google_project_service_identity".

Closed this issue · 1 comments

make docker_test_lint is failing with:

terraform_validate ./test/setup

Error: Invalid resource type

  on .terraform/modules/project/modules/project_services/main.tf line 38, in resource "google_project_service_identity" "project_service_identities":
  38: resource "google_project_service_identity" "project_service_identities" {

The provider provider.google-beta does not support resource type
"google_project_service_identity".

It is relate to the Support service_identity #448 in the new release of project-factory

To fix we cloud bump the version of the google beta provider

From:

provider "google-beta" {
  version = "~> 3.36.0"
}

to

provider "google-beta" {
  version = "~> 3.38.0"
}

OR

add more control over the major version of the project factory module in the test setup and bump the google-beta provider later.

From:

module "project" {
  source  = "terraform-google-modules/project-factory/google"
  version = "~> 9.0"

To:

module "project" {
  source  = "terraform-google-modules/project-factory/google"
  version = "~> 9.0.0"

We should just bump the providers for now. I opened an issue to track as I have been noticing this across modules.