-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutputs.tf
More file actions
57 lines (57 loc) · 1.64 KB
/
outputs.tf
File metadata and controls
57 lines (57 loc) · 1.64 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
output "endpoint" {
value = module.api.endpoint
}
output "internal_endpoint" {
value = module.api.internal_endpoint
}
output "dispatch_endpoint" {
value = var.protocol == "WEBSOCKET" ? "${replace(module.api.internal_endpoint, "wss://", "https://")}/$default" : null
}
output "dispatch_execution_arn_pattern" {
value = var.protocol == "WEBSOCKET" ? "${module.api.internal_execution_arn}/$default/POST/@connections/*" : null
}
output "lambda_arn" {
value = module.lambda.arn
}
output "lambda_invoke_arn" {
value = module.lambda.invoke_arn
}
output "lambda_name" {
value = module.lambda.name
}
output "lambda_role_name" {
value = module.lambda.role_name
}
output "event_lambda_arn" {
value = var.event_lambda ? module.event_lambda[0].arn : null
}
output "event_lambda_invoke_arn" {
value = var.event_lambda ? module.event_lambda[0].invoke_arn : null
}
output "event_lambda_name" {
value = var.event_lambda ? module.event_lambda[0].name : null
}
output "event_lambda_role_name" {
value = var.event_lambda ? module.event_lambda[0].role_name : null
}
output "data_bucket_name" {
value = local.has_data_bucket ? aws_s3_bucket.data[0].bucket : null
}
output "data_bucket_arn" {
value = local.has_data_bucket ? aws_s3_bucket.data[0].arn : null
}
output "static_assets_buckets" {
value = module.api.static_assets_buckets
}
output "cloudfront_id" {
value = module.api.cloudfront_id
}
output "cloudfront_arn" {
value = module.api.cloudfront_arn
}
output "cloudfront_origin_access_identity_iam_arn" {
value = module.api.cloudfront_origin_access_identity_iam_arn
}
output "parameters" {
value = local.has_parameters ? module.parameters[0].parameters : {}
}