-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathoutputs.tf
217 lines (176 loc) · 6.83 KB
/
outputs.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
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
######################################################
# Outputs
######################################################
output "first_time_setup_config" {
description = "Values to use when finishing the initial Common Fate deployment process"
value = {
dns_cname_record_for_app_domain = module.alb.domain
dns_cname_record_for_auth_domain = module.cognito.user_pool_cloudfront_distribution
saml_sso_entity_id = module.cognito.saml_entity_id
saml_sso_acs_url = module.cognito.saml_acs_url
}
}
output "outputs" {
description = "All outputs from the Common Fate module"
value = {
dns_cname_record_for_app_domain = module.alb.domain
dns_cname_record_for_auth_domain = module.cognito.user_pool_cloudfront_distribution
saml_sso_entity_id = module.cognito.saml_entity_id
saml_sso_acs_url = module.cognito.saml_acs_url
web_client_id = module.cognito.web_client_id
cli_client_id = module.cognito.cli_client_id
terraform_client_id = module.cognito.terraform_client_id
read_only_client_id = module.cognito.read_only_client_id
provisioner_client_id = module.cognito.provisioner_client_id
control_plane_task_role_arn = module.control_plane.task_role_arn
access_handler_security_group_id = module.access_handler.security_group_id
vpc_id = local.vpc_id
private_subnet_ids = local.private_subnet_ids
ecs_cluster_id = local.ecs_cluster_id
auth_issuer = module.cognito.auth_issuer
event_bus_log_group_name = module.events.event_bus_log_group_name
cognito_user_pool_id = module.cognito.user_pool_id
cognito_identity_provider_name = module.cognito.identity_provider_name
provisioner_task_role_arn = module.provisioner.task_role_arn
provisioner_task_role_name = module.provisioner.task_role_name
provisioner_url = module.provisioner.provisioner_url
database_subnet_group_id = local.database_subnet_group_id
service_discovery_namespace_arn = module.ecs_base.service_discovery_namespace_arn
}
}
output "sensitive_outputs" {
description = "Sensitive output values such as generated OIDC client secrets"
sensitive = true
value = {
terraform_client_secret = module.cognito.terraform_client_secret
provisioner_client_secret = module.cognito.provisioner_client_secret
read_only_client_secret = module.cognito.read_only_client_secret
}
}
output "provisioner_task_role_arn" {
description = "The task role arn of the builtin provisioner module"
value = module.provisioner.task_role_arn
}
output "provisioner_task_role_name" {
description = "The task role name of the builtin provisioner module"
value = module.provisioner.task_role_name
}
output "provisioner_url" {
description = "The private ecs url of provisioner module"
value = module.provisioner.provisioner_url
}
output "cognito_saml_entity_id" {
description = "The cognito entity ID required for SAML configuration"
value = module.cognito.saml_entity_id
}
output "cognito_saml_acs_url" {
description = "The cognito ACS URL required for SAML configuration"
value = module.cognito.saml_acs_url
}
output "load_balancer_domain" {
description = "The load balancer domain required for configuring DNS records to point to the frontend and api service"
value = module.alb.domain
}
output "user_pool_cloudfront_distribution" {
description = "The cloudfront domain of the cognito user pool required for configuring dns records for the auth domain"
value = module.cognito.user_pool_cloudfront_distribution
}
output "web_client_id" {
description = "web client id"
value = module.cognito.web_client_id
}
output "cli_client_id" {
description = "cli client id"
value = module.cognito.cli_client_id
}
output "terraform_client_id" {
description = "terraform client id"
value = module.cognito.terraform_client_id
}
output "terraform_client_secret" {
description = "terraform client secret"
value = module.cognito.terraform_client_secret
sensitive = true
}
output "read_only_client_id" {
description = "The client ID with read only API access."
value = module.cognito.read_only_client_id
}
output "read_only_client_secret" {
description = "The client secret with read only API access"
value = module.cognito.read_only_client_id
sensitive = true
}
output "provisioner_client_id" {
description = "provisioner client id"
value = module.cognito.provisioner_client_id
}
output "provisioner_client_secret" {
description = "provisioner client secret"
value = module.cognito.provisioner_client_secret
sensitive = true
}
output "control_plane_task_role_arn" {
description = "The control plane task role arn."
value = module.control_plane.task_role_arn
}
output "access_handler_security_group_id" {
description = "The access handler security group id."
value = module.access_handler.security_group_id
}
output "vpc_id" {
description = "The vpc id."
value = local.vpc_id
}
output "private_subnet_ids" {
description = "The private subnet id."
value = local.private_subnet_ids
}
output "ecs_cluster_id" {
description = "The ecs id."
value = local.ecs_cluster_id
}
output "auth_issuer" {
description = "The auth issuer."
value = module.cognito.auth_issuer
}
output "event_bus_log_group_name" {
description = "The Event Bus log group name."
value = module.events.event_bus_log_group_name
}
output "alb_listener_arn" {
description = "The ALB Listener ARN."
value = module.alb.listener_arn
}
output "auth_authority_url" {
description = "The OIDC authority URL."
value = module.cognito.auth_authority_url
}
output "alb_security_group_id" {
description = "The ALB Security Group ID."
value = module.alb.alb_security_group_id
}
output "cognito_identity_provider_name" {
description = "The Cognito identity provider name."
value = module.cognito.identity_provider_name
}
output "cognito_user_pool_id" {
description = "The Cognito user pool ID."
value = module.cognito.user_pool_id
}
output "event_bus_arn" {
description = "The EventBridge event bus ARN"
value = module.events.event_bus_arn
}
output "alert_topics" {
description = "SNS topic ARNs of alerts used for monitoring a Common Fate deployment"
value = module.alerts.alert_topics
}
output "cloudwatch_alarm_topics" {
description = "SNS topic ARNs of alerts for resources monitored with CloudWatch"
value = module.alerts.cloudwatch_alarm_topics
}
output "load_balancer_arn" {
description = "ARN of the load balancer."
value = module.alb.load_balancer_arn
}