UPD: removed time-static and replaced with timestamp()

This commit is contained in:
xpk 2023-11-23 17:32:38 +08:00
parent 22a0f0980d
commit 7c06971fd3
Signed by: xpk
GPG Key ID: CD4FF6793F09AB86

View File

@ -6,13 +6,12 @@ provider "aws" {
Project = var.project Project = var.project
Application = var.application Application = var.application
TerraformMode = "managed" 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]}" TerraformDir = "${reverse(split("/", path.cwd))[1]}/${reverse(split("/", path.cwd))[0]}"
} }
} }
} }
resource "time_static" "current_time" {}
terraform { terraform {
required_version = ">= 1.3" required_version = ">= 1.3"