-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathapi_gateway_outputs.tf
39 lines (32 loc) · 1.31 KB
/
api_gateway_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
output "api_gateway_endpoint" {
description = "The `HTTP` endpoint of the v2 API Gateway resource"
value = try(aws_apigatewayv2_api.this[0].api_endpoint, "")
}
output "api_gateway_arn" {
description = "The `ARN` of the v2 API Gateway resource"
value = try(aws_apigatewayv2_api.this[0].arn, "")
}
output "api_gateway_id" {
description = "The ID of the v2 API Gateway resource"
value = try(aws_apigatewayv2_api.this[0].id, "")
}
output "api_gateway_name" {
description = "The name of the v2 API Gateway resource"
value = try(aws_apigatewayv2_api.this[0].name, "")
}
output "api_gateway_integration_ids" {
description = "The ID's of the v2 API Gateway integration resource"
value = { for k, v in aws_apigatewayv2_integration.lambda : k => v.id }
}
output "api_gateway_stage_api_id" {
description = "The API ID of the v2 API Gateway stage resource"
value = try(aws_apigatewayv2_stage.default[0].api_id, "")
}
output "api_gateway_stage_invoke_url" {
description = "The API ID of the v2 API Gateway stage resource"
value = try(aws_apigatewayv2_stage.default[0].invoke_url, "")
}
output "domain_id" {
description = "The ID of the custom domain name used for the v2 API gateway resource"
value = try(aws_apigatewayv2_domain_name.api_gateway_domain[0].id, null)
}