fix(kb): update the template

This commit is contained in:
Michele Cereda
2024-02-29 22:15:10 +01:00
parent c6a1bc4941
commit b73153c9cf
2 changed files with 6 additions and 11 deletions

View File

@@ -2,27 +2,24 @@
Intro Intro
<!-- Remove this line to uncomment if needed
## Table of contents <!-- omit in toc --> ## Table of contents <!-- omit in toc -->
1. [TL;DR](#tldr) 1. [TL;DR](#tldr)
1. [Further readings](#further-readings) 1. [Further readings](#further-readings)
1. [Sources](#sources) 1. [Sources](#sources)
## TL;DR ## TL;DR
## Further readings ## Further readings
## Sources ### Sources
All the references in the [further readings] section, plus the following:
<!-- <!--
References References
--> -->
<!-- In-article sections --> <!-- In-article sections -->
[further readings]: #further-readings
<!-- Knowledge base --> <!-- Knowledge base -->
<!-- Files --> <!-- Files -->
<!-- Upstream --> <!-- Upstream -->

View File

@@ -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. [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. [Print sensitive values in output](#print-sensitive-values-in-output)
1. [Further readings](#further-readings) 1. [Further readings](#further-readings)
1. [Sources](#sources) 1. [Sources](#sources)
## TL;DR ## TL;DR
@@ -73,7 +73,7 @@ terraform state show 'module.foo.packet_device.worker'
# Remove registered resources from states. # Remove registered resources from states.
terraform state rm 'oci_core_instance.ampere' 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]' 'module.foo.packet_device.worker' 'tfe_team.robots[1]'
# Remove all resources from the current state. # Remove all resources from the current state.
@@ -305,9 +305,7 @@ eval "export $(sed -E 's/([[:graph:]]+)[[:blank:]]*=[[:blank:]]*([[:graph:]]+)/T
- [OpenTofu] - [OpenTofu]
- [Pulumi] - [Pulumi]
## Sources ### Sources
All the references in the [further readings] section, plus the following:
- [`for_each` vs `count`][for_each vs count] - [`for_each` vs `count`][for_each vs count]
- [Azure Provider] - [Azure Provider]