@orlandohh_ Going to start filling this out now- will take me about 30-45 minutes or so to get this all together. Were donating all revenue generated from purchasing via our Affiliate Links back to the Hurricane Melissa Relief website via the Jamaican Government
https://t.co/HmbbZ99b4c
** Terraform best practices you need to know **
1. Code structure, code quality and organization
Never keep your configuration in a single main .tf. Segregate the files in separate folders per resources, environments, regions and projects. If your configuration is simple, then at least utilize the terraform workspaces command for managing multiple environments.
This also allows for faster terraform executions.
Standardize naming conventions, input & output variables are your friends. Don't hardcode values that can be passed as variables or discovered using data sources
2. Maintainability and re-usability
Create reusable modules for common infrastructure components(resource and infrastructure modules). Store modules in a separate repository or a dedicated directory (modules/). Think of them as templates for your resources. Keep resource modules as plain as possible
Example of a Terraform project:
SSH Tunnels - A Visual Guide To Port Forwarding 🧵
One of my favorite parts of SSH is tunneling. With just the regular ssh client, you can do wonders!
1. Local Port forwarding
Access private ports of a remote machine using local tools (your browser, a fancy DB UI client, etc)