Closed joesome-git closed 6 months ago
Thank for bringing up this issue. @prudhvigodithi , can you assign this to me? Thanks
The docs are missing here: https://registry.terraform.io/providers/opensearch-project/opensearch/latest/docs/resources/channel_configuration
Need to run this cli to add the docs: https://github.com/hashicorp/terraform-plugin-docs
The example above only partially worked for me... after applying the plan it wanted to make further changes each time, here is what worked in the end:
resource "opensearch_channel_configuration" "name_here_slack" {
body = <<EOF
{
"config_id": "name-here",
"config": {
"name": "Name Here",
"description" : "Description here",
"config_type" : "slack",
"is_enabled" : true,
"slack": {
"url": "https://slack.webhook.url.com/ddsfsdfsddsffsd"
}
}
}
EOF
}
The difference being that "name" isn't needed at the top level and id should be config_id. see the API docs for full reference https://opensearch.org/docs/latest/observing-your-data/notifications/api/
There's currently no usage example for resource opensearch_channel_configuration. It would be useful to include it on the OpenSearch terraform module documentation.