Skip to content

Instantly share code, notes, and snippets.

@sblack4
Last active June 15, 2020 17:27
Show Gist options
  • Save sblack4/f772f3dce0dd3e98f6cf4aab099160e1 to your computer and use it in GitHub Desktop.
Save sblack4/f772f3dce0dd3e98f6cf4aab099160e1 to your computer and use it in GitHub Desktop.
#!/bin/bash
terraform-config-inspect --json | jq -r '.variables | keys | .[]' | sort | awk '{printf $1 " = var." $1 "\n"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment