Closed Wonong closed 2 years ago
Annotation is worked for issues, not runtime errors. This is the intended behavior.
It is recommended to fix it so that the error does not occur. If you always expect to be given the input value, you can remove the default = null
. If the default value is adopted, you may get the same error during the terraform plan
. You can use the try
function to suppress the error.
Thank you for your answer :)
Descriotion
I ran tflint with my custom module including redshift resource and it printed failure message since i set my redshift password default value as
null
So, i add tflint-ignore annotation above error line. but, it still prints error message like below.redshift.tf
variables.tf
Version
TFLint version 0.35.0 Terraform v1.1.6 on linux_amd64