-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
43 lines (37 loc) · 813 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
terraform {
required_providers {
opensearch = {
source = "opensearch-project/opensearch"
version = "2.3.0"
}
}
}
provider "opensearch" {
url = "url"
healthcheck = "false"
aws_region = "region"
aws_assume_role_arn = "role arn"
aws_assume_role_external_id = "opensearch-external"
version_ping_timeout = "10"
}
resource "opensearch_index" "index" {
name = "sample"
number_of_replicas = "1"
number_of_shards = "1"
}
resource "opensearch_channel_configuration" "sns_channel_configuration" {
body = <<EOF
{
"id": "sample-sns-id",
"name": "sample-name",
"config": {
"name": "sns-channel",
"config_type": "sns",
"sns": {
"topic_arn": "topic arn",
"role_arn": "role arn"
}
}
}
EOF
}