From 2f1ae58aaa319a3483bd5acd8d1582222a0a3dcd Mon Sep 17 00:00:00 2001 From: Andrew Peabody Date: Thu, 5 Jan 2023 17:53:17 +0000 Subject: [PATCH] feat: update to GO 1.16 --- modules/key-distributor/files/function/go.mod | 15 +++++++++++---- modules/key-distributor/main.tf | 2 +- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/modules/key-distributor/files/function/go.mod b/modules/key-distributor/files/function/go.mod index 429ba22..b3cc67a 100644 --- a/modules/key-distributor/files/function/go.mod +++ b/modules/key-distributor/files/function/go.mod @@ -1,8 +1,15 @@ -module github.com/onetwopunch/terraform-google-gsa-encrypter/cfn/encrypter +module github.com/terraform-google-modules/terraform-google-service-accounts/modules/key-distributor/files/function -go 1.14 +go 1.16 require ( - golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de - google.golang.org/api v0.30.0 + golang.org/x/crypto v0.5.0 + google.golang.org/api v0.106.0 +) + +require ( + cloud.google.com/go/compute v1.15.0 // indirect + github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect + golang.org/x/oauth2 v0.4.0 // indirect + google.golang.org/genproto v0.0.0-20230104163317-caabf589fcbf // indirect ) diff --git a/modules/key-distributor/main.tf b/modules/key-distributor/main.tf index 72f3784..7256a72 100644 --- a/modules/key-distributor/main.tf +++ b/modules/key-distributor/main.tf @@ -77,7 +77,7 @@ resource "google_cloudfunctions_function" "function" { region = var.region name = var.function_name description = "Generates and encrypts a new Service Account key given a GPG public key" - runtime = "go113" + runtime = "go116" trigger_http = true service_account_email = google_service_account.distributor.email