summaryrefslogtreecommitdiff
path: root/OTF Code Style.md
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-05-06 17:06:23 +0200
committerJasper Ras <jras@hostnet.nl>2025-05-06 17:06:23 +0200
commit50626752711b563185eda78ba25c145079111d14 (patch)
tree9c4b04bb8e2364ab572f632daddda01c0c2541f2 /OTF Code Style.md
parent4223e9afd4401bd930ca815ffa816eb76fad83f6 (diff)
vault backup: 2025-05-06 17:06:23
Diffstat (limited to 'OTF Code Style.md')
-rw-r--r--OTF Code Style.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/OTF Code Style.md b/OTF Code Style.md
new file mode 100644
index 0000000..d957949
--- /dev/null
+++ b/OTF Code Style.md
@@ -0,0 +1,13 @@
+---
+tags:
+ - opentofu
+---
+`#` for both single and multiline comments
+Resource names: nouns without specifying resource type
+snake_case
+Define resources in the same order as their dependency ordering
+Include type and description for every variable
+Describe every output
+Avoid overuse of variables and local values
+Always include default provider config
+use `count` and `for_each` sparingly