Bonus: Prod Destroy
At the end of the Gitlab CI pipeline there is a 'prod destroy' stage. It is mandatory to clarify this subject.
In a real use case, it is strongly discouraged to create stages/jobs destroying resources in production.
Exceptionally for this practical project made for learning, this stage brings a comfort of use especially for debugging; and shows how easily and quickly it is possible to destroy a large amount of resources deployed with Terraform, Kubectl or Helm using a single command (terraform destroy, kubectl delete or helm uninstall).
📃 See the prod destroy stage at the end of the Gitlab CI configuration file →