From 3d425b7d9c5f65a49a14a06dc29e9f3b7eace4d8 Mon Sep 17 00:00:00 2001 From: Julio Castillo Date: Tue, 21 Mar 2023 11:54:07 +0100 Subject: [PATCH] Ignore changes to metadata.0.annotations in Cloud Run module Fixes #1173 --- modules/cloud-run/main.tf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/cloud-run/main.tf b/modules/cloud-run/main.tf index 52267d37..eab61d4a 100644 --- a/modules/cloud-run/main.tf +++ b/modules/cloud-run/main.tf @@ -1,5 +1,5 @@ /** - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -193,6 +193,11 @@ resource "google_cloud_run_service" "service" { } } + lifecycle { + ignore_changes = [ + metadata.0.annotations + ] + } } resource "google_cloud_run_service_iam_binding" "binding" {