-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoutput.tf
75 lines (59 loc) · 1.48 KB
/
output.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
output "website_bucket" {
value = one(module.website[*].bucket)
}
output "ws_rpc_role" {
value = one(module.ws[*].rpc_role)
}
output "http_api_role" {
value = one(module.http[*].api_role)
}
output "http_rpc_role" {
value = one(module.http[*].rpc_role)
}
output "auth_post_confirmation_trigger_role" {
value = one(module.auth[*].post_confirmation_trigger_role)
}
output "auth_post_authentication_trigger_role" {
value = one(module.auth[*].post_authentication_trigger_role)
}
output "auth_pre_authentication_trigger_role" {
value = one(module.auth[*].pre_authentication_trigger_role)
}
output "auth_pre_sign_up_trigger_role" {
value = one(module.auth[*].pre_sign_up_trigger_role)
}
output "auth_cognito_user_pool_id" {
value = one(module.auth[*].user_pool.id)
}
output "prefix" {
value = local.prefix
}
output "url_website" {
value = local.url_website
}
output "url_http" {
value = local.url_http
}
output "url_ws" {
value = local.url_ws
}
output "url_auth" {
value = local.url_auth
}
output "hosted_zone_id" {
value = one(data.aws_route53_zone.domain[*].zone_id)
}
output "backend_environment_vars" {
value = merge(
length(module.ws) == 0 ? {} : {
FUN_EVENTS_SNS_OUTPUT_TOPIC = module.ws[0].event_topic
},
length(module.auth) == 0 ? {} : {
FUN_AUTH_COGNITO_USER_POOL_ID = module.auth[0].user_pool.id
FUN_AUTH_URL = module.auth[0].url
}
)
}
output "backend_policy_arn" {
value = one(module.ws[*].event_policy_arn)
}