From b73153c9cfcf576dd1e89110b16289e4f0f16bf7 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Thu, 29 Feb 2024 22:15:10 +0100 Subject: [PATCH] fix(kb): update the template --- knowledge base/template.md | 9 +++------ knowledge base/terraform.md | 8 +++----- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/knowledge base/template.md b/knowledge base/template.md index fdc5b8b..8f75236 100644 --- a/knowledge base/template.md +++ b/knowledge base/template.md @@ -2,27 +2,24 @@ Intro + 1. [TL;DR](#tldr) 1. [Further readings](#further-readings) -1. [Sources](#sources) + 1. [Sources](#sources) ## TL;DR ## Further readings -## Sources - -All the references in the [further readings] section, plus the following: +### Sources -[further readings]: #further-readings - diff --git a/knowledge base/terraform.md b/knowledge base/terraform.md index bee1353..18a0c84 100644 --- a/knowledge base/terraform.md +++ b/knowledge base/terraform.md @@ -15,7 +15,7 @@ 1. [Export the contents of a tfvars file as shell variables](#export-the-contents-of-a-tfvars-file-as-shell-variables) 1. [Print sensitive values in output](#print-sensitive-values-in-output) 1. [Further readings](#further-readings) -1. [Sources](#sources) + 1. [Sources](#sources) ## TL;DR @@ -73,7 +73,7 @@ terraform state show 'module.foo.packet_device.worker' # Remove registered resources from states. terraform state rm 'oci_core_instance.ampere' -terraform state -state 'path/to/file.tfstate' \ +terraform state -state 'path/to/file.tfstate' rm \ 'module.foo.packet_device.worker' 'tfe_team.robots[1]' # Remove all resources from the current state. @@ -305,9 +305,7 @@ eval "export $(sed -E 's/([[:graph:]]+)[[:blank:]]*=[[:blank:]]*([[:graph:]]+)/T - [OpenTofu] - [Pulumi] -## Sources - -All the references in the [further readings] section, plus the following: +### Sources - [`for_each` vs `count`][for_each vs count] - [Azure Provider]