Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
a6d2931d
Commit
a6d2931d
authored
9 years ago
by
Fred Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
elasticsearch module
parent
7994adbe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
0 deletions
+53
-0
terraform/.gitignore
+0
-0
terraform/elasticsearch/main.tf
+38
-0
terraform/elasticsearch/variables.tf
+15
-0
No files found.
terraform/
sitespeed/
.gitignore
→
terraform/.gitignore
View file @
a6d2931d
File moved
This diff is collapsed.
Click to expand it.
terraform/elasticsearch/main.tf
0 → 100644
View file @
a6d2931d
resource "aws_elasticsearch_domain" "es" {
domain_name = "${var.es_domain_name}"
advanced_options {
"rest.action.multi.allow_explicit_index" = true
}
cluster_config {
instance_type = "${var.es_instance_type}"
instance_count = "${var.es_instance_count}"
zone_awareness_enabled = true
}
ebs_options {
ebs_enabled = true
volume_size = "${var.es_ebs_volume_size}"
}
access_policies = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "es:*",
"Principal": "*",
"Effect": "Allow",
"Condition": {
"IpAddress": {"aws:SourceIp": ["${var.source_ip}"]}
}
}
]
}
EOF
snapshot_options {
automated_snapshot_start_hour = 0
}
}
output "endpoint" {
value = "${endpoint}"
}
This diff is collapsed.
Click to expand it.
terraform/elasticsearch/variables.tf
0 → 100644
View file @
a6d2931d
variable "aws_region" {
default = "us-east-1"
}
variable "es_domain_name" { }
variable "es_instance_type" {
default = "m3.large.elasticsearch"
}
variable "es_instance_count" {
default = "5"
}
variable "es_ebs_volume_size" {
default = "100"
}
variable "source_ip" { }
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment