forked from sonodar/dify-aws-terraform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
94 lines (72 loc) · 1.5 KB
/
variables.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# AWS Provider
variable "aws_region" {}
variable "default_tags" {
type = map(string)
}
# S3 Bucket for Dify Storage
variable "dify_storage_bucket" {
description = "s3 bucket name for dify storage"
}
# VPC
variable "vpc_id" {
}
variable "private_subnet_ids" {
type = list(string)
}
variable "public_subnet_ids" {
type = list(string)
}
# Redis
variable "redis_password" {
default = "redis_dummy_auth_token"
sensitive = true
# 初回実行時は dummy で実行し、構築後に以下のコマンドで更新する。
# aws elasticache modify-replication-group \
# --replication-group-id replication-group-sample \
# --auth-token new-token \
# --auth-token-update-strategy SET \
# --apply-immediately
}
# Database
variable "db_master_password" {
default = "dummy" # 初回実行時に TF_VAR_db_master_password=xxx で与える
sensitive = true
}
# Dify environment
variable "dify_api_version" {
default = "0.6.11"
}
variable "dify_web_version" {
default = "0.6.11"
}
variable "dify_sandbox_version" {
default = "0.2.1"
}
variable "migration_enabled" {
default = "false"
}
variable "dify_db_username" {
default = "dify"
}
variable "dify_db_password" {
default = "dummy"
sensitive = true
}
variable "dify_db_name" {
default = "dify"
}
# ALB
variable "allowed_cidr_blocks" {
type = list(string)
default = []
}
# Service
variable "api_desired_count" {
default = 1
}
variable "worker_desired_count" {
default = 1
}
variable "web_desired_count" {
default = 1
}