-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
98 lines (80 loc) · 3.51 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
output "apigatewayv2_api_id" {
description = "The API identifier"
value = try(aws_apigatewayv2_api.this[0].id, "")
}
output "apigatewayv2_api_api_endpoint" {
description = "The URI of the API"
value = try(aws_apigatewayv2_api.this[0].api_endpoint, "")
}
output "apigatewayv2_api_arn" {
description = "The ARN of the API"
value = try(aws_apigatewayv2_api.this[0].arn, "")
}
output "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 = try(aws_apigatewayv2_api.this[0].execution_arn, "")
}
# default stage
output "default_apigatewayv2_stage_id" {
description = "The default stage identifier"
value = try(aws_apigatewayv2_stage.default[0].id, "")
}
output "default_apigatewayv2_stage_arn" {
description = "The default stage ARN"
value = try(aws_apigatewayv2_stage.default[0].arn, "")
}
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 = try(aws_apigatewayv2_stage.default[0].execution_arn, "")
}
output "default_apigatewayv2_stage_invoke_url" {
description = "The URL to invoke the API pointing to the stage"
value = try(aws_apigatewayv2_stage.default[0].invoke_url, "")
}
output "default_apigatewayv2_stage_domain_name" {
description = "Domain name of the stage (useful for CloudFront distribution)"
value = replace(try(aws_apigatewayv2_stage.default[0].invoke_url, ""), "/^https?://([^/]*).*/", "$1")
}
# domain name
output "apigatewayv2_domain_name_id" {
description = "The domain name identifier"
value = try(aws_apigatewayv2_domain_name.this[0].id, "")
}
output "apigatewayv2_domain_name_arn" {
description = "The ARN of the domain name"
value = try(aws_apigatewayv2_domain_name.this[0].arn, "")
}
output "apigatewayv2_domain_name_api_mapping_selection_expression" {
description = "The API mapping selection expression for the domain name"
value = try(aws_apigatewayv2_domain_name.this[0].api_mapping_selection_expression, "")
}
output "apigatewayv2_domain_name_configuration" {
description = "The domain name configuration"
value = try(aws_apigatewayv2_domain_name.this[0].domain_name_configuration, "")
}
output "apigatewayv2_domain_name_target_domain_name" {
description = "The target domain name"
value = try(aws_apigatewayv2_domain_name.this[0].domain_name_configuration[0].target_domain_name, "")
}
output "apigatewayv2_domain_name_hosted_zone_id" {
description = "The Amazon Route 53 Hosted Zone ID of the endpoint"
value = try(aws_apigatewayv2_domain_name.this[0].domain_name_configuration[0].hosted_zone_id, "")
}
# api mapping
output "apigatewayv2_api_mapping_id" {
description = "The API mapping identifier."
value = try(aws_apigatewayv2_api_mapping.this[0].id, "")
}
# VPC link
output "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 "apigatewayv2_vpc_link_arn" {
description = "The map of VPC Link ARNs"
value = { for k, v in aws_apigatewayv2_vpc_link.this : k => v.arn }
}
output "apigatewayv2_authorizer_id" {
description = "The map of API Gateway Authorizer identifiers"
value = { for k, v in aws_apigatewayv2_authorizer.this : k => v.id }
}