Question related to variable

I have created one variable with below

variable “openshift-version” {
type = string
}

now want to use here as version = var.openshift-version like openshift-v4.9.7

how i can do it?

Why don’t you pass ‘openshift-v4.9.7’ as the value to the openshift-version variable?

Because it will change as per need