...
- Use security groups to restrict traffic (e.g., only SSH or HTTPS).
- Pin provider versions in
main.tffor reproducibility. - Use
terraform planbefore every apply. - Always add informative tags (
tags = {…}) for easier costs traceability and administration. - Consider versioning/backing up the
main.tfyou created, as well as theterraform.tfstatefile that resulted from the execution, using for example git, . This helps to avoid loosing track of your the resources' state.
...