From 734961a3e06800cd5f2d13a7e0bca8c7bcba2d18 Mon Sep 17 00:00:00 2001 From: Vivek <25414711+Vonter@users.noreply.github.com> Date: Tue, 6 Feb 2024 07:38:45 +0530 Subject: [PATCH] [docs] Add Terraform example for opensearch_channel_configuation (#154) * [docs] Add Terraform example for opensearch_channel_configuation Signed-off-by: Vonter <25414711+Vonter@users.noreply.github.com> * [docs] Change webhook URL in example Terraform Signed-off-by: Vonter <25414711+Vonter@users.noreply.github.com> --------- Signed-off-by: Vonter <25414711+Vonter@users.noreply.github.com> --- docs/resources/channel_configuration.md | 30 ++++++++++++++++++- .../import.sh | 1 + .../resource.tf | 17 +++++++++++ 3 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 examples/resources/opensearch_channel_configuration/import.sh create mode 100644 examples/resources/opensearch_channel_configuration/resource.tf diff --git a/docs/resources/channel_configuration.md b/docs/resources/channel_configuration.md index 9628dba..d11e63a 100644 --- a/docs/resources/channel_configuration.md +++ b/docs/resources/channel_configuration.md @@ -10,7 +10,27 @@ description: |- Provides an OpenSearch channel configuration. Please refer to the OpenSearch channel configuration documentation for details. - +## Example Usage + +```terraform +# Create a channel configuration +resource "opensearch_channel_configuration" "configuration_1" { + body = < ## Schema @@ -22,3 +42,11 @@ Provides an OpenSearch channel configuration. Please refer to the OpenSearch cha ### Read-Only - `id` (String) The ID of this resource. + +## Import + +Import is supported using the following syntax: + +```shell +terraform import opensearch_channel_configuration.configuration_1 configuration_1 +``` diff --git a/examples/resources/opensearch_channel_configuration/import.sh b/examples/resources/opensearch_channel_configuration/import.sh new file mode 100644 index 0000000..fb3f5b6 --- /dev/null +++ b/examples/resources/opensearch_channel_configuration/import.sh @@ -0,0 +1 @@ +terraform import opensearch_channel_configuration.configuration_1 configuration_1 diff --git a/examples/resources/opensearch_channel_configuration/resource.tf b/examples/resources/opensearch_channel_configuration/resource.tf new file mode 100644 index 0000000..6556d4a --- /dev/null +++ b/examples/resources/opensearch_channel_configuration/resource.tf @@ -0,0 +1,17 @@ +# Create a channel configuration +resource "opensearch_channel_configuration" "configuration_1" { + body = <