UPD: removing timestamp from tags. store it only in outputs. this prevents resource tags from being updated
This commit is contained in:
parent
e39ad9e1c4
commit
14aedda9a9
@ -6,7 +6,6 @@ provider "aws" {
|
|||||||
Project = var.project
|
Project = var.project
|
||||||
Application = var.application
|
Application = var.application
|
||||||
TerraformMode = "managed"
|
TerraformMode = "managed"
|
||||||
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]}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -23,4 +22,6 @@ terraform {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
output "last-updated" {
|
||||||
|
value = timestamp()
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user