-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
147 lines (118 loc) · 3.6 KB
/
variables.tf
File metadata and controls
147 lines (118 loc) · 3.6 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
variable "environment" {
description = "The environment to deploy (dev, test, prod)"
type = string
validation {
condition = contains(["dev", "test", "prod"], var.environment)
error_message = "The environment must be one of 'dev', 'test', or 'prod'."
}
}
variable "aws_account_id" {
description = "The AWS account ID"
type = string
}
variable "codeconnection_arn" {
description = "The ARN of the codeconnection"
type = string
}
# CodeDeploy
variable "codedeploy_service_role_arn" {
description = "The ARN of the IAM role for CodeDeploy"
type = string
}
variable "frontend_ecs_service_name" {
description = "The name of the ECS service for the frontend"
type = string
}
variable "frontend_alb_listener_arn" {
description = "The ARN of the ALB listener for the frontend"
type = string
}
variable "frontend_alb_target_group_blue_name" {
description = "The name of the blue target group for the frontend ALB"
type = string
}
variable "frontend_alb_target_group_green_name" {
description = "The name of the green target group for the frontend ALB"
type = string
}
variable "backend_ecs_service_name" {
description = "The name of the ECS service for the backend"
type = string
}
variable "backend_alb_listener_arn" {
description = "The ARN of the ALB listener for the backend"
type = string
}
variable "backend_alb_target_group_blue_name" {
description = "The name of the blue target group for the backend ALB"
type = string
}
variable "backend_alb_target_group_green_name" {
description = "The name of the green target group for the backend ALB"
type = string
}
# variable "apollo_gateway_ecs_service_name" {
# description = "The name of the ECS service for the Apollo Gateway"
# type = string
# }
# variable "apollo_gateway_alb_listener_arn" {
# description = "The ARN of the ALB listener for the apollo gateway"
# type = string
# }
# variable "apollo_gateway_alb_target_group_blue_name" {
# description = "The name of the blue target group for the apollo gateway ALB"
# type = string
# }
# variable "apollo_gateway_alb_target_group_green_name" {
# description = "The name of the green target group for the apollo gateway ALB"
# type = string
# }
variable "ecs_cluster_name" {
description = "The name of the ECS cluster"
type = string
}
# CodePipeline
variable "codepipeline_iam_role_arn" {
description = "The ARN of the IAM role for CodePipeline"
type = string
}
variable "codepipeline_artifact_bucket" {
description = "The name of the S3 bucket for CodePipeline artifacts"
type = string
}
# CodeBuild
variable "codebuild_iam_role_arn" {
description = "The name of the IAM role for CodeBuild"
type = string
}
# Networking
variable "vpc_id" {
description = "The ID of the VPC"
type = string
}
variable "database_subnet_ids" {
description = "The IDs of the subnets for the database"
type = list(string)
}
variable "database_codebuild_sg_id" {
description = "The ID of the security group for the database CodeBuild"
type = string
}
# Secrets
variable "rds_secrets_arn" {
description = "The ARN of the RDS secrets"
type = string
}
variable "gitlab_user" {
description = "The GitLab user for CI/CD pipeline"
type = string
}
variable "gitlab_token" {
description = "The GitLab token for CI/CD pipeline"
type = string
}
# SSM
variable "gitlab_terraform_config_arn" {
description = "The ARN of the SSM parameter for GitLab Terraform config"
type = string
}