Skip to content

An argument named "service_account" is not expected here.  #134

@ethanbrown3

Description

@ethanbrown3

Since upgrading my module from v0.5.0 to v0.6.0 I'm seeing this error.

│ Error: Unsupported argument
│ 
│   on .terraform/modules/pipeline.stream_producer_function/main.tf line 31, in resource "google_cloudfunctions2_function" "function":
│   31:     service_account       = var.build_service_account
│ 
│ An argument named "service_account" is not expected here.

Here is my template code.

module "stream_producer_function" {
  source = "GoogleCloudPlatform/cloud-functions/google"

  project_id        = var.project_id
  function_name     = "${local.full_app_name}-function"
  function_location = var.region
  runtime           = "python312"
  entrypoint        = "main"
  docker_repository = "projects/${var.project_id}/locations/us-central1/repositories/gcf-artifacts"

  event_trigger = {
    trigger_region        = var.region
    event_type            = "google.cloud.pubsub.topic.v1.messagePublished"
    service_account_email = null
    pubsub_topic          = google_pubsub_topic.producer_trigger_topic.id
    retry_policy          = var.retry_policy
    event_filters         = null
  }

  service_config = var.service_config

  storage_source = {
    bucket = var.bucket_name
    object = google_storage_bucket_object.cf_source_zip_code_object.name
  }

  depends_on = [
    google_storage_bucket_object.cf_source_zip_code_object
  ]

  labels = var.labels
}

d17cfa7#diff-dc46acf24afd63ef8c556b77c126ccc6e578bc87e3aa09a931f33d9bf2532fbbR31

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions