hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.32k stars 1.72k forks source link

google_datafusion_instance does not support developer instance type #8508

Closed fmiquel90 closed 3 years ago

fmiquel90 commented 3 years ago

Community Note

Terraform Version

Terraform v0.14.4

Affected Resource(s)

Terraform Configuration Files

variable "project_id" {
  default = "staging-test-24246"
}

variable "impersonate_service_account" {
  default = "my_service_account"
}

terraform {
  required_providers {
    google = {
      source  = "hashicorp/google"
      version = "3.57.0"
    }
    google-beta = {
      source  = "hashicorp/google-beta"
      version = "3.57.0"
    }
  }
}

provider "google" {
  project                     = var.project_id
  impersonate_service_account = var.impersonate_service_account
}

provider "google-beta" {
  project                     = var.project_id
  impersonate_service_account = var.impersonate_service_account
}

resource "google_data_fusion_instance" "instance" {
  provider                      = google-beta
  name                          = "datafusion"
  description                   = "datafusion instance"
  region                        = "europe-west-2"
  type                          = "developer"
  enable_stackdriver_logging    = false
  enable_stackdriver_monitoring = false
  private_instance              = false
  version                       = "6.3.0"
}

Expected Behavior

Deploy a DataFusion Instance of Developer type

Actual Behavior

Error: expected type to be one of [BASIC ENTERPRISE], got developer

  on main.tf line 37, in resource "google_data_fusion_instance" "instance":
  37:   type                          = "developer"

Steps to Reproduce

  1. terraform plan

Important Factoids

It's possible to deploy a Data Fusion instance of Developer type with the Google Cloud SDK

venkykuberan commented 3 years ago

Looks like DEVELOPER type added after we created the resource. We will fix it, thanks for filing the issue

fmiquel90 commented 3 years ago

Yes and according to the Cloud SDK documentation, a zone argument is required only for the DEVELOPER instance type : Compute Engine zone in which the instance will be created. Only needed for DEVELOPER edition

https://cloud.google.com/sdk/gcloud/reference/beta/data-fusion/instances/create

ghost commented 3 years ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!