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
terraform plan (or destroy) initiates a CLI prompt for inputs like aws_ami_filter. This input should write to var.aws_ami_filter.
Current Behavior
It's too easy to input a value for aws_ami_filter that isn't formatted correctly. This results in the following error.
Failure Information (for bugs)
│ Error: Missing expression
│
│ on <value for var.aws_ami_filter> line 1:
│ (source code not available)
│
│ Expected the start of an expression, but found the end of the file.
│ Error: No value for required variable
│
│ on variables.tf line 43:
│ 43: variable "aws_ami_filter" {
│
│ The root module input variable "aws_ami_filter" is not set, and has no default value. Use a -var or -var-file command line argument to provide a value for this variable.
Steps to Reproduce
terrform init
terraform plan (or terraform destroy)
enter CLI prompt inputs. For aws_ami_filter input rubrik-mp-cc-7* (See comment below)
This is caused by a bad input for var.aws_ami_filter, e.g.
rubrik-mp-cc-7*
'rubrik-mp-cc-7*'
"rubrik-mp-cc-7*"
['rubrik-mp-cc-7*']
[rubrik-mp-cc-7*]
will all throw, because an input like ["rubrik-mp-cc-7*"] is expected.
Solution:
I'll update the description in variables.tf to reflect this format
I'll also see what I can do to format inputs correctly to accommodate this range of inputs
codecudi
changed the title
Unable to write var.aws_ami_filter in CLI prompt
Too easy to mis-format var.aws_ami_filter in CLI prompt
Sep 29, 2023
codecudi
changed the title
Too easy to mis-format var.aws_ami_filter in CLI prompt
Too easy to format var.aws_ami_filter incorrectly in CLI prompt
Sep 29, 2023
Expected Behavior
terraform plan
(ordestroy
) initiates a CLI prompt for inputs likeaws_ami_filter
. This input should write tovar.aws_ami_filter
.Current Behavior
It's too easy to input a value for
aws_ami_filter
that isn't formatted correctly. This results in the following error.Failure Information (for bugs)
Steps to Reproduce
terrform init
terraform plan
(orterraform destroy
)aws_ami_filter
inputrubrik-mp-cc-7*
(See comment below)Context
terraform.lock.hcl
The text was updated successfully, but these errors were encountered: