From 50626752711b563185eda78ba25c145079111d14 Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Tue, 6 May 2025 17:06:23 +0200 Subject: vault backup: 2025-05-06 17:06:23 --- OTF Code Style.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 OTF Code Style.md (limited to 'OTF Code Style.md') 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 -- cgit v1.2.3