-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathvariables.tf
More file actions
112 lines (92 loc) · 2.5 KB
/
Copy pathvariables.tf
File metadata and controls
112 lines (92 loc) · 2.5 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# Elastic Beanstalk Module Variables
variable "project_name" {
description = "Name of the project"
type = string
}
variable "environment" {
description = "Environment name (e.g., production, staging)"
type = string
}
variable "solution_stack_name" {
description = "Elastic Beanstalk solution stack name"
type = string
# Find the latest: aws elasticbeanstalk list-available-solution-stacks
default = "64bit Amazon Linux 2023 v4.7.4 running Docker"
}
variable "vpc_id" {
description = "VPC ID"
type = string
}
variable "subnet_ids" {
description = "List of subnet IDs for EC2 instances"
type = list(string)
}
variable "elb_subnet_ids" {
description = "List of subnet IDs for the load balancer"
type = list(string)
}
variable "instance_type" {
description = "EC2 instance type"
type = string
default = "t3.small"
}
variable "min_instance_count" {
description = "Minimum number of instances"
type = number
default = 1
}
variable "max_instance_count" {
description = "Maximum number of instances"
type = number
default = 4
}
variable "instance_profile_name" {
description = "IAM instance profile name"
type = string
}
variable "eb_service_role_name" {
description = "Elastic Beanstalk service role name"
type = string
}
variable "eb_service_role_arn" {
description = "Elastic Beanstalk service role ARN"
type = string
}
variable "instance_security_group_id" {
description = "Security group ID for EC2 instances"
type = string
}
variable "alb_security_group_id" {
description = "Security group ID for Application Load Balancer"
type = string
}
variable "deployment_policy" {
description = "Deployment policy (Rolling, RollingWithAdditionalBatch, Immutable)"
type = string
default = "RollingWithAdditionalBatch"
}
variable "health_check_path" {
description = "Path for health check"
type = string
default = "/health"
}
variable "log_retention_days" {
description = "Number of days to retain logs"
type = number
default = 7
}
variable "environment_variables" {
description = "Map of environment variables"
type = map(string)
default = {}
}
variable "enable_https" {
description = "Enable HTTPS listener on ALB"
type = bool
default = false
}
variable "ssl_certificate_arn" {
description = "ARN of SSL certificate for HTTPS listener"
type = string
default = ""
}