You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The workspace creation fails with an error describing that the value provided for disk_size is invalid because a number is required. At that point, the workspace is actually in an invalid state such that you are not able to delete it nor create a new workspace with the same name (see #831 (comment)).
Logs
# coder create --template="aws-linux" test-defaults
This template has customizable parameters. Values can be
changed after create, but may have unintended side effects
(like data loss).
var.disk_size
Specify your disk size (GiB)
> Enter a value:
var.region
What region should your workspace live in?
> us-west-2
┌────────────────────────────────────────────────────────────────────────────────┐
│ Workspace Preview │
├────────────────────────────────────────────────────────────────────────────────┤
│ RESOURCE STATUS ACCESS │
├────────────────────────────────────────────────────────────────────────────────┤
│ aws_instance.dev ephemeral │
│ └─ dev (linux, amd64) coder ssh test-defaults.dev │
└────────────────────────────────────────────────────────────────────────────────┘
> Confirm create? (yes/no) yes
✔ Queued [433ms]
✔ Setting up [10ms]
⧗ Starting workspace
Terraform 1.1.7
Warning: Argument is deprecated
Warning: Argument is deprecated
Error: Invalid value for input variable
The argument -var="disk_size=..." does not contain a valid value for variable "disk_size": a number is required.
Error: Invalid operand
Unsuitable value for left operand: a number is required.
Error: Invalid operand
Unsuitable value for left operand: a number is required.
✘ Starting workspace [6115ms]
exit status 1
The text was updated successfully, but these errors were encountered:
#1584 makes Coder use the default variable values if available. We are tracking the broken builds caused by bad params result in undeletable workspaces in #831
OS Information
coder --version
:(same Coder version both on CLI and server, but server is Ubuntu 20.04 LTS x86_64)
Steps to Reproduce
aws-linux
examplecoder create --template="aws-linux" test-defaults
var.disk_size
, press return without typing any other inputExpected
The workspace creation should succeed, using the default value for
var.disk_size
since none was provided when prompted.Actual
The workspace creation fails with an error describing that the value provided for
disk_size
is invalid because a number is required. At that point, the workspace is actually in an invalid state such that you are not able to delete it nor create a new workspace with the same name (see #831 (comment)).Logs
The text was updated successfully, but these errors were encountered: