Skip to content

Conversation

DanielRieske
Copy link
Contributor

This PR adds support for Cloud Functions 2nd generation resources as requested in #1752
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloudfunctions2_function

Exported example

resource "google_cloudfunctions2_function" "tfer--us-central1_function_v2" {
  build_config {
    entry_point = "helloHttp"
    runtime     = "nodejs20"

    source {
      storage_source {
        bucket     = "gcf-v2-source"
        object     = "function-source.zip"
      }
    }
  }

  location = "us-central1"
  name     = "function-v2"
  project  = "my-project-name"

  service_config {
    all_traffic_on_latest_revision   = "true"
    available_cpu                    = "167m"
    available_memory                 = "256Mi"
    ingress_settings                 = "ALLOW_ALL"
    max_instance_count               = "100"
    max_instance_request_concurrency = "1"
    min_instance_count               = "0"
    timeout_seconds                  = "60"
  }
}

@github-actions github-actions bot added the Stale label Sep 13, 2023
@sergeylanzman sergeylanzman merged commit 6a40142 into GoogleCloudPlatform:master Sep 19, 2023
ErikAtSumo pushed a commit to SumoLogic/terraformer that referenced this pull request Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants