From 45b33b7b6985b5b84a453b80e7dcad78e1435434 Mon Sep 17 00:00:00 2001 From: Maor Davidov Date: Mon, 30 Dec 2024 23:07:59 +0200 Subject: [PATCH] Ignore changes of image_uri to allow CI/CD platforms to deploy new versions --- main.tf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.tf b/main.tf index c37d445c..1eea13f1 100644 --- a/main.tf +++ b/main.tf @@ -143,6 +143,10 @@ resource "aws_lambda_function" "this" { var.function_tags ) + lifecycle { + ignore_changes = [ image_uri ] + } + depends_on = [ null_resource.archive, aws_s3_object.lambda_package,