-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.tf
38 lines (36 loc) · 1.6 KB
/
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
data "aws_caller_identity" "current" {}
# AWS Elasticsearch
module "es" {
source = "./modules/es"
create_es = var.create_es
name = var.es_name
region = var.region
account_id = data.aws_caller_identity.current.account_id
es_ver = var.es_ver
instance_type = var.es_instance_type
instance_count = var.es_instance_count
dedicated_master_enabled = var.es_dedicated_master_enabled
ebs_size = var.es_ebs_size
snapshot_start_hour = var.es_snapshot_start_hour
name_tag = var.es_name_tag
stream_name = var.stream_name
whitelisted_ips = var.es_whitelisted_ips
}
# Kinesis Firehose
module "kinesis-firehose" {
source = "./modules/kinesis-firehose"
stream_name = var.stream_name
account_id = data.aws_caller_identity.current.account_id
region = var.region
bucket = var.s3_bucket
es_arn = module.es.arn
s3_buffer_size = var.s3_buffer_size
s3_buffer_interval = var.s3_buffer_interval
s3_compression_format = var.s3_compression_format
create_es_destination = var.create_es
es_index_name = var.es_index_name
es_buffering_size = var.es_buffering_size
es_buffering_interval = var.es_buffering_interval
s3_backup_mode = var.s3_backup_mode
whitelisted_aws_account_arns = var.whitelisted_aws_account_arns
}