Skip to content

Instantly share code, notes, and snippets.

View calum-hunter's full-sized avatar

Calum Hunter calum-hunter

  • Woolworths
  • Melbourne
View GitHub Profile
@calum-hunter
calum-hunter / gist:9e455e9a76ccf81a18b69689cc10c305
Last active October 7, 2021 20:47
Upload cloudfunction as TF operation
# Setup some local vars to handle uploading the code
locals {
timestamp = formatdate("YYMMDDhhmmss", timestamp())
root_directory = abspath("./cloud_functions/")
}
# Create a bucket for storing the cloud function
resource "google_storage_bucket" "cf_code" {
name = "cf-code-my-org-b863b7"
location = "AUSTRALIA-SOUTHEAST1"