From 28e5fc820195169f6f5cd98b1a43c2b95784ab68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eyap=C3=A8n=C3=A8?= <33751533+eyapene@users.noreply.github.com> Date: Thu, 15 Aug 2024 01:56:38 +0200 Subject: [PATCH] Update README.md Add an example of deleting a specific deployment with Terraform --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index ae14122c0..256ca162b 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,14 @@ resource "ec_deployment" "example_minimal" { } ``` +```hcl +# Delete an Elastic Cloud deployment +# To target a specific deployment for destruction, Terraform provides the --target option. This option allows you to specify a particular resource that you want to destroy, leaving the rest of your infrastructure intact. +# The command syntax is as follows: terraform destroy --target +# Let's assume we want to delete the previously created deployment +terraform destroy --target ec_deployment.example_minimal +``` + ## Developer Requirements - [Terraform](https://www.terraform.io/downloads.html) 0.13+