Skip to content

Instantly share code, notes, and snippets.

@Nogbit
Created May 21, 2022 19:12
Show Gist options
  • Save Nogbit/69e9d12020a584381c7107e697d2f824 to your computer and use it in GitHub Desktop.
Save Nogbit/69e9d12020a584381c7107e697d2f824 to your computer and use it in GitHub Desktop.
SCC Article 4
###
# Google Cloud Function
#
resource "google_cloudfunctions_function" "scanner" {
name = "Golden-Image-Scanner"
description = "GCF to run daily that scans for disks using out of date golden images"
runtime = "python39"
region = var.region
available_memory_mb = 128
trigger_http = true
timeout = 60
ingress_settings = "ALLOW_ALL"
entry_point = "scan"
service_account_email = google_service_account.sa_gcf.email
source_repository {
url = var.gcf_git_url
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment