-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathvariables.tf
More file actions
76 lines (73 loc) · 2.95 KB
/
Copy pathvariables.tf
File metadata and controls
76 lines (73 loc) · 2.95 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
variable "aws_region" {
type = string
default = "us-west-2"
description = "AWS region"
}
variable "aws_domain_name" {
type = string
default = "example.com"
description = "Primary domain name"
}
variable "aws_containers" {
type = map(object({
image = string
cpu = number
memory = number
port = number
health_check = optional(string)
health_check_interval = optional(number)
health_check_timeout = optional(number)
health_check_retries = optional(number)
health_check_start_period = optional(number)
health_check_healthy_threshold = optional(number)
health_check_unhealthy_threshold = optional(number)
public = bool
domain = optional(string)
protocol = string
port_name = optional(string)
desired_count = optional(number)
environment = optional(map(string))
enable_logs = optional(bool, false)
redirect_to_https = optional(bool, false)
secrets = optional(list(object({
name = string
valueFrom = string
})))
autoscaling = optional(object({
min_capacity = number
max_capacity = number
target_cpu = number
scale_in_cooldown = number
scale_out_cooldown = number
}))
}))
description = "Container configuration"
}
variable "aws_databases" {
type = map(object({
engine = string
rds_instance_class = optional(string)
rds_engine = optional(string)
rds_engine_version = optional(string)
rds_db_name = optional(string)
rds_username = optional(string)
rds_password_arn = optional(string)
rds_allocated_storage = optional(number)
rds_storage_type = optional(string)
rds_multi_az = optional(bool)
rds_port = optional(number)
rds_publicly_accessible = optional(bool)
rds_skip_final_snapshot = optional(bool)
rds_ingress_allowed_cidr_blocks = optional(list(string))
rds_egress_cidr_blocks = optional(list(string))
dynamodb_table_name = optional(string)
dynamodb_hash_key = optional(string)
dynamodb_hash_key_type = optional(string)
dynamodb_range_key = optional(string)
dynamodb_range_key_type = optional(string)
dynamodb_read_capacity = optional(number)
dynamodb_write_capacity = optional(number)
dynamodb_billing_mode = optional(string)
}))
description = "Database configuration"
}