Created
May 21, 2022 19:12
-
-
Save Nogbit/69e9d12020a584381c7107e697d2f824 to your computer and use it in GitHub Desktop.
SCC Article 4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# 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