Variable waypoint

I’m sure this code with variable as the example, I’m getting an error.

app “my-app” {
build {
use “docker” {}

deploy {
use “docker” {
service_port = var.port

variable “port” {
type = number
default = 8080


Unsupported block type; Blocks of type “variable” are not expected here.

Cannot read variable parameter.

Can someone please help?

Version waypoint
CLI: v0.4.0 (3b3dd831)
Server: v0.5.1

Support for variables was released in version 0.5.0. Please upgrade your CLI and try again!

1 Like