A practical shell scripting walkthrough showing how to extract multiple values from Terraform state JSON using jq, then pass them to psql without storing intermediate files. Key techniques covered include jq's select() function, bash grouping commands with curly braces, process substitution, and using a subshell to avoid leaking sensitive variables like passwords after the session ends.
Sort: