I have inherited a Packer project that has an odd syntax in the "default" field of the variable definitions. I have a pkrvars file that I am assigning the variables in, using the variable name block (e.g sshkey, subscription_id, etc).
What is the purpose of the #{variablename}# syntax?
I know that the team was working on automating these images with terraform and azure devops, but my searches haven't turned up much yet. The packer documentation and articles that I find all use the ${variablename} syntax to use variables. I think that it is some syntax for getting the azure devops pipeline defined variables, but was hoping to find some documentation to read about it (and improve my understanding).
variable "sshkey" {
type = string
default = "#{sshkey}#"
}
variable "subscription_id" {
type = string
default = "#{subscriptionid}#"
}
variable "tenant_id" {
type = string
default = "#{tenantid}#"
}
variable "vm_size" {
type = string
default = "#{vmsize}#"
}