From a55feb8e8c14715f8d373dec8e23671939d6ac30 Mon Sep 17 00:00:00 2001 From: snowhork Date: Wed, 6 Jan 2021 06:53:40 +0900 Subject: [PATCH] ec_extension: fix extension_bundle example --- examples/extension/README.md | 12 ------------ examples/extension_bundle/README.md | 15 +++++++++++++++ .../{extension => extension_bundle}/extension.tf | 0 .../files/content.json | 0 .../files/content.json.zip | Bin .../{extension => extension_bundle}/outputs.tf | 0 6 files changed, 15 insertions(+), 12 deletions(-) delete mode 100644 examples/extension/README.md create mode 100644 examples/extension_bundle/README.md rename examples/{extension => extension_bundle}/extension.tf (100%) rename examples/{extension => extension_bundle}/files/content.json (100%) rename examples/{extension => extension_bundle}/files/content.json.zip (100%) rename examples/{extension => extension_bundle}/outputs.tf (100%) diff --git a/examples/extension/README.md b/examples/extension/README.md deleted file mode 100644 index 40b8ec27e..000000000 --- a/examples/extension/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# Extension example - -This example shows how to create an Elastic Cloud extension using Terraform. -You can create the extension by `files/content.json` - -## Running the example - -To run the example, follow these steps: - -1. Build the provider by running `make install` from the main folder. -2. Run `terrafrom init` to initialize your Terraform CLI. -3. Run `terraform apply` to see how it works. diff --git a/examples/extension_bundle/README.md b/examples/extension_bundle/README.md new file mode 100644 index 000000000..b7f2d2738 --- /dev/null +++ b/examples/extension_bundle/README.md @@ -0,0 +1,15 @@ +# Extension Bundle example + +This example shows how to create an Elastic Cloud bundle extension using Terraform. + +The bundle extension is created with `files/content.json` uploaded. + +See https://www.elastic.co/guide/en/cloud/current/ec-custom-bundles.html#ec-add-your-plugin for details. + +## Running the example + +To run the example, follow these steps: + +1. Build the provider by running `make install` from the main folder. +2. Run `terrafrom init` to initialize your Terraform CLI. +3. Run `terraform apply` to see how it works. diff --git a/examples/extension/extension.tf b/examples/extension_bundle/extension.tf similarity index 100% rename from examples/extension/extension.tf rename to examples/extension_bundle/extension.tf diff --git a/examples/extension/files/content.json b/examples/extension_bundle/files/content.json similarity index 100% rename from examples/extension/files/content.json rename to examples/extension_bundle/files/content.json diff --git a/examples/extension/files/content.json.zip b/examples/extension_bundle/files/content.json.zip similarity index 100% rename from examples/extension/files/content.json.zip rename to examples/extension_bundle/files/content.json.zip diff --git a/examples/extension/outputs.tf b/examples/extension_bundle/outputs.tf similarity index 100% rename from examples/extension/outputs.tf rename to examples/extension_bundle/outputs.tf