-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
57 lines (55 loc) · 1.12 KB
/
main.tf
File metadata and controls
57 lines (55 loc) · 1.12 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
provider "aws" {
region = "ap-northeast-2"
}
# resource "aws_opensearch_domain" "search_engine" {
# domain_name = "search-engine"
# engine_version = "OpenSearch_2.13"
#
# cluster_config {
# instance_type = "t2.small.search"
# instance_count = 1
# }
#
# ebs_options {
# ebs_enabled = true
# volume_size = 10
# volume_type = "gp2"
# }
#
# access_policies = <<EOF
# {
# "Version": "2012-10-17",
# "Statement": [
# {
# "Effect": "Allow",
# "Principal": {
# "AWS": "*"
# },
# "Action": "es:*",
# "Resource": "arn:aws:es:ap-northeast-2:123456789012:domain/search-engine/*",
# "Condition": {
# "IpAddress": {
# "aws:SourceIp": "0.0.0.0/0"
# }
# }
# }
# ]
# }
# EOF
#
# advanced_options = {
# "rest.action.multi.allow_explicit_index" = "true"
# }
#
# tags = {
# Domain = "search-engine"
# }
# }
# resource "aws_instance" "example" {
# ami = "ami-00ff737803101edd1" # Amazon Linux 2023 AMI
# instance_type = "t2.micro"
#
# tags = {
# Name = "terraform-example"
# }
# }