Terraform init-validate-plan-apply Bash function
Tired of typing Terraform init, validate, apply? I’ve written this bash function to speed this up and implement some good practices. ...
Tired of typing Terraform init, validate, apply? I’ve written this bash function to speed this up and implement some good practices. ...
Everyone has their own preferences when it comes to writing Bash scripts, I prefer very high safety & syntax consistency. A good example of both is variables, ${USER} can be shortened to $USER, but any following characters could be interpreted as part of the variable name. The longer syntax is also more powerful, enabling small conditional checks, which means we’ll likely end up using the longer syntax somewhere in our script, so why not keep it consistent and use it everywhere!...
Here’s a list of useful piped commands or just commands for which I need a refresher on which arguments to use. For example, using Awk to print between two known lines, or seleting a line in sed are good examples of infrequently used commands which are really useful. ...
Following on from bashrc , here is a snapshot and explaination of my .motd ...
Here’s a snapshot of my .bashrc, I put this together to normalise my environment; which is particularly useful when working across CentOS/RHEL 6/7, SLES11/12 & Debian/Ubuntu. I’ll overexplain some lines and underexplain others, depending on how interesting they are. ...