134 lines
3.8 KiB
JSON
134 lines
3.8 KiB
JSON
{
|
|
"valid": false,
|
|
"error_count": 6,
|
|
"warning_count": 1,
|
|
"diagnostics": [
|
|
{
|
|
"severity": "error",
|
|
"summary": "Missing required argument",
|
|
"detail": "The argument \"source\" is required, but no definition was found.",
|
|
"range": {
|
|
"filename": "testdata/validate-invalid/incorrectmodulename/main.tf",
|
|
"start": {
|
|
"line": 1,
|
|
"column": 23,
|
|
"byte": 22
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 23,
|
|
"byte": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"severity": "error",
|
|
"summary": "Invalid module instance name",
|
|
"detail": "A name must start with a letter or underscore and may contain only letters, digits, underscores, and dashes.",
|
|
"range": {
|
|
"filename": "testdata/validate-invalid/incorrectmodulename/main.tf",
|
|
"start": {
|
|
"line": 1,
|
|
"column": 8,
|
|
"byte": 7
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 22,
|
|
"byte": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"severity": "warning",
|
|
"summary": "Interpolation-only expressions are deprecated",
|
|
"detail": "Terraform 0.11 and earlier required all non-constant expressions to be provided via interpolation syntax, but this pattern is now deprecated. To silence this warning, remove the \"${ sequence from the start and the }\" sequence from the end of this expression, leaving just the inner expression.\n\nTemplate interpolation syntax is still used to construct strings from expressions when the template includes multiple interpolation sequences or a mixture of literal strings and interpolations. This deprecation applies only to templates that consist entirely of a single interpolation sequence.",
|
|
"range": {
|
|
"filename": "testdata/validate-invalid/incorrectmodulename/main.tf",
|
|
"start": {
|
|
"line": 5,
|
|
"column": 12,
|
|
"byte": 55
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 31,
|
|
"byte": 74
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"severity": "error",
|
|
"summary": "Variables not allowed",
|
|
"detail": "Variables may not be used here.",
|
|
"range": {
|
|
"filename": "testdata/validate-invalid/incorrectmodulename/main.tf",
|
|
"start": {
|
|
"line": 5,
|
|
"column": 15,
|
|
"byte": 58
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 18,
|
|
"byte": 61
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"severity": "error",
|
|
"summary": "Unsuitable value type",
|
|
"detail": "Unsuitable value: value must be known",
|
|
"range": {
|
|
"filename": "testdata/validate-invalid/incorrectmodulename/main.tf",
|
|
"start": {
|
|
"line": 5,
|
|
"column": 12,
|
|
"byte": 55
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 31,
|
|
"byte": 74
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"severity": "error",
|
|
"summary": "Module not installed",
|
|
"detail": "This module is not yet installed. Run \"terraform init\" to install all modules required by this configuration.",
|
|
"range": {
|
|
"filename": "testdata/validate-invalid/incorrectmodulename/main.tf",
|
|
"start": {
|
|
"line": 4,
|
|
"column": 1,
|
|
"byte": 27
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 15,
|
|
"byte": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"severity": "error",
|
|
"summary": "Module not installed",
|
|
"detail": "This module is not yet installed. Run \"terraform init\" to install all modules required by this configuration.",
|
|
"range": {
|
|
"filename": "testdata/validate-invalid/incorrectmodulename/main.tf",
|
|
"start": {
|
|
"line": 1,
|
|
"column": 1,
|
|
"byte": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 22,
|
|
"byte": 21
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|