Skip to content

Commit

Permalink
Ignore changes to metadata.0.annotations in Cloud Run module
Browse files Browse the repository at this point in the history
Fixes #1173
  • Loading branch information
juliocc committed Mar 21, 2023
1 parent 3b20d61 commit 3d425b7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/cloud-run/main.tf
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -193,6 +193,11 @@ resource "google_cloud_run_service" "service" {
}
}

lifecycle {
ignore_changes = [
metadata.0.annotations
]
}
}

resource "google_cloud_run_service_iam_binding" "binding" {
Expand Down

0 comments on commit 3d425b7

Please sign in to comment.