-
Notifications
You must be signed in to change notification settings - Fork 7
/
main.tf
65 lines (56 loc) · 1.1 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#################
# Variables
#################
variable "admin_password" {
default = "example"
}
variable "aws_region" {
default = "us-east-1"
}
variable "hosted_zone_id" {
default = ""
}
variable "key_pair_name" {
}
variable "private_subnet_ids" {
type = list(string)
}
variable "vpc_id" {
}
#################
# Providers
#################
provider "aws" {
region = var.aws_region
}
#################
# Modules
#################
module "influxdb" {
source = "../../"
admin_username = "admin"
admin_password = var.admin_password
data_storage_volume_size = 4
hosted_zone_id = var.hosted_zone_id
instance_type = "t3a.small"
key_pair_name = var.key_pair_name
nodes = 1
prefix = "ebs-example"
private_subnet_ids = var.private_subnet_ids
storage_type = "ebs"
tags = {
Terraform = "true"
Environment = "dev"
}
vpc_id = var.vpc_id
wal_storage_volume_size = 5
}
#################
# Outputs
#################
output "influxdb_api_endpoint" {
value = module.influxdb.influxdb_api_endpoint
}
output "influxdb_admin_endpoint" {
value = module.influxdb.influxdb_admin_endpoint
}