From 7c06971fd3898b7ad0ee2ffeea4248698ad975fd Mon Sep 17 00:00:00 2001 From: xpk Date: Thu, 23 Nov 2023 17:32:38 +0800 Subject: [PATCH] UPD: removed time-static and replaced with timestamp() --- examples/skel/provider.tf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/skel/provider.tf b/examples/skel/provider.tf index 9a26d39..3748d4d 100644 --- a/examples/skel/provider.tf +++ b/examples/skel/provider.tf @@ -6,13 +6,12 @@ provider "aws" { Project = var.project Application = var.application TerraformMode = "managed" - BuildDate = time_static.current_time.rfc3339 + LastUpdatedOn = formatdate("YYYY-MM-DD", timestamp()) TerraformDir = "${reverse(split("/", path.cwd))[1]}/${reverse(split("/", path.cwd))[0]}" } } } -resource "time_static" "current_time" {} terraform { required_version = ">= 1.3"