This repository was archived by the owner on Oct 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
94 lines (77 loc) · 3.69 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
output "this_apigatewayv2_api_id" {
description = "The API identifier"
value = element(concat(aws_apigatewayv2_api.this.*.id, [""]), 0)
}
output "this_apigatewayv2_api_api_endpoint" {
description = "The URI of the API"
value = element(concat(aws_apigatewayv2_api.this.*.api_endpoint, [""]), 0)
}
output "this_apigatewayv2_api_arn" {
description = "The ARN of the API"
value = element(concat(aws_apigatewayv2_api.this.*.arn, [""]), 0)
}
output "this_apigatewayv2_api_execution_arn" {
description = "The ARN prefix to be used in an aws_lambda_permission's source_arn attribute or in an aws_iam_policy to authorize access to the @connections API."
value = element(concat(aws_apigatewayv2_api.this.*.execution_arn, [""]), 0)
}
# default stage
output "default_apigatewayv2_stage_id" {
description = "The default stage identifier"
value = element(concat(aws_apigatewayv2_stage.default.*.id, [""]), 0)
}
output "default_apigatewayv2_stage_arn" {
description = "The default stage ARN"
value = element(concat(aws_apigatewayv2_stage.default.*.arn, [""]), 0)
}
output "default_apigatewayv2_stage_execution_arn" {
description = "The ARN prefix to be used in an aws_lambda_permission's source_arn attribute or in an aws_iam_policy to authorize access to the @connections API."
value = element(concat(aws_apigatewayv2_stage.default.*.execution_arn, [""]), 0)
}
output "default_apigatewayv2_stage_invoke_url" {
description = "The URL to invoke the API pointing to the stage"
value = element(concat(aws_apigatewayv2_stage.default.*.invoke_url, [""]), 0)
}
# domain name
output "this_apigatewayv2_domain_name_id" {
description = "The domain name identifier"
value = element(concat(aws_apigatewayv2_domain_name.this.*.id, [""]), 0)
}
output "this_apigatewayv2_domain_name_arn" {
description = "The ARN of the domain name"
value = element(concat(aws_apigatewayv2_domain_name.this.*.arn, [""]), 0)
}
output "this_apigatewayv2_domain_name_api_mapping_selection_expression" {
description = "The API mapping selection expression for the domain name"
value = element(concat(aws_apigatewayv2_domain_name.this.*.api_mapping_selection_expression, [""]), 0)
}
output "this_apigatewayv2_domain_name_configuration" {
description = "The domain name configuration"
value = element(concat(aws_apigatewayv2_domain_name.this.*.domain_name_configuration, [""]), 0)
}
output "this_apigatewayv2_domain_name_target_domain_name" {
description = "The target domain name"
value = var.create_api_domain_name ? lookup(tomap(element(element(concat(aws_apigatewayv2_domain_name.this.*.domain_name_configuration, [""]), 0), 0)), "target_domain_name", "") : ""
}
output "this_apigatewayv2_domain_name_hosted_zone_id" {
description = "The Amazon Route 53 Hosted Zone ID of the endpoint"
value = var.create_api_domain_name ? lookup(tomap(element(element(concat(aws_apigatewayv2_domain_name.this.*.domain_name_configuration, [""]), 0), 0)), "hosted_zone_id", "") : ""
}
# api mapping
output "this_apigatewayv2_api_mapping_id" {
description = "The API mapping identifier."
value = element(concat(aws_apigatewayv2_api_mapping.this.*.id, [""]), 0)
}
# route
# output "this_apigatewayv2_route_id" {
# description = "The default route identifier."
# value = element(concat(aws_apigatewayv2_route.this.*.id, [""]), 0)
# }
# VPC link
output "this_apigatewayv2_vpc_link_id" {
description = "The map of VPC Link identifiers"
value = { for k, v in aws_apigatewayv2_vpc_link.this : k => v.id }
}
output "this_apigatewayv2_vpc_link_arn" {
description = "The map of VPC Link ARNs"
value = { for k, v in aws_apigatewayv2_vpc_link.this : k => v.arn }
}