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
I have an additional issue with it not handling the file's extension.
Previous this worked and outputted the content in yaml: yq -v -P '.outputs ' .terraform.tfstate
Now I get this error: Error: unknown format 'tfstate' please use [yaml|json|props|csv|tsv|xml]
13:26:22 FormatFromFilename [DEBU] checking file extension '.terraform.tfstate' for auto format detection
13:26:22 FormatFromFilename [DEBU] detected format 'tfstate'
13:26:22 FormatFromFilename [DEBU] checking file extension '.terraform.tfstate' for auto format detection
13:26:22 FormatFromFilename [DEBU] detected format 'tfstate'
I renamed my input file to .terraform.json
Executed yq -P '.outputs ' .terraform.json, but now the content is JSON.
The work around was to force the output format: yq -o yaml -P '.outputs' .terraform.json or yq -o yaml '.outputs' .terraform.json
The text was updated successfully, but these errors were encountered:
Copied from #1608 on behalf of @MrMarkW
I have an additional issue with it not handling the file's extension.
Previous this worked and outputted the content in yaml: yq -v -P '.outputs ' .terraform.tfstate
Now I get this error: Error: unknown format 'tfstate' please use [yaml|json|props|csv|tsv|xml]
13:26:22 FormatFromFilename [DEBU] checking file extension '.terraform.tfstate' for auto format detection
13:26:22 FormatFromFilename [DEBU] detected format 'tfstate'
13:26:22 FormatFromFilename [DEBU] checking file extension '.terraform.tfstate' for auto format detection
13:26:22 FormatFromFilename [DEBU] detected format 'tfstate'
I renamed my input file to .terraform.json
Executed yq -P '.outputs ' .terraform.json, but now the content is JSON.
The work around was to force the output format: yq -o yaml -P '.outputs' .terraform.json or yq -o yaml '.outputs' .terraform.json
The text was updated successfully, but these errors were encountered: