Hello,
I am trying to use the terraspace expansion (variable replacement) inside a module, does someone know if this is possible?
It’s not clear if the Ruby remplatin only work on stacks, config and or tfvars
app → modules → common-tags → main.tf
locals {
tags = {
ManagedBy = "terraform"
Environment = "<%= Terraspace.env %>"
Stack = "<%= expansion(':MOD_NAME') %>"
StackType = "<%= expansion(':TYPE') %>"
Region = "<%= expansion(':REGION') %>"
Location = "<%= expansion(':LOCATION') %>"
Organisation = var.organisation
Project = "<%= expansion(':PROJECT') %>"
App = "<%= expansion(':APP') %>"
}
}