Skip to content

Commit

Permalink
[docs] Add missed examples for datasources.
Browse files Browse the repository at this point in the history
  • Loading branch information
phillbaker committed Jan 25, 2021
1 parent d85ef75 commit 116c9ff
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/data-sources/elasticsearch_host/data-source.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
data "elasticsearch_host" "test" {
active = true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Example destination in other terraform plan
# resource "elasticsearch_opendistro_destination" "test" {
# body = <<EOF
# {
# "name": "my-destination",
# "type": "slack",
# "slack": {
# "url": "http://www.example.com"
# }
# }
# EOF
# }

data "elasticsearch_opendistro_destination" "test" {
name = my-destination"
}

0 comments on commit 116c9ff

Please sign in to comment.