Open ethanbrown3 opened 1 week ago
Facing the same issue!
module "cf_my-function" {
source = "GoogleCloudPlatform/cloud-functions/google"
version = "~> 0.6.0"
# Required variables
function_name = "my-function"
project_id = var.project_id
function_location = var.region
runtime = "python310"
entrypoint = "main"
storage_source = {
bucket = var.source_bucket
object = google_storage_bucket_object.code_bucket_obj.name
generation = null
}
service_config = {
service_account_email = module.sa.email
available_memory = "8G"
available_cpu = "2000m"
}
event_trigger = {
event_type = "google.cloud.storage.object.v1.finalized"
service_account_email = module.sa.email
retry_policy = "RETRY_POLICY_DO_NOT_RETRY"
trigger_region = var.region
event_filters = [
{
attribute = "bucket"
attribute_value = var.target_bucket
}
]
}
}
Works fine with 0.5.0
Since upgrading my module from
v0.5.0
tov0.6.0
I'm seeing this error.Here is my template code.
https://github.com/GoogleCloudPlatform/terraform-google-cloud-functions/commit/d17cfa7f14bbe31c2ddb6aa882a12a83cee4de56#diff-dc46acf24afd63ef8c556b77c126ccc6e578bc87e3aa09a931f33d9bf2532fbbR31