From 14aedda9a9d96cedbf635fb54a89656241790ca5 Mon Sep 17 00:00:00 2001 From: xpk Date: Tue, 28 Nov 2023 08:17:30 +0800 Subject: [PATCH] UPD: removing timestamp from tags. store it only in outputs. this prevents resource tags from being updated --- examples/skel/provider.tf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/skel/provider.tf b/examples/skel/provider.tf index 3748d4d..96b64fc 100644 --- a/examples/skel/provider.tf +++ b/examples/skel/provider.tf @@ -6,7 +6,6 @@ provider "aws" { Project = var.project Application = var.application TerraformMode = "managed" - LastUpdatedOn = formatdate("YYYY-MM-DD", timestamp()) TerraformDir = "${reverse(split("/", path.cwd))[1]}/${reverse(split("/", path.cwd))[0]}" } } @@ -23,4 +22,6 @@ terraform { } } - +output "last-updated" { + value = timestamp() +}