generated from cloudposse/terraform-example-module
-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
outputs.tf
38 lines (32 loc) · 1.38 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
output "id" {
description = "The ID of the REST API"
value = module.this.enabled ? aws_api_gateway_rest_api.this[0].id : null
}
output "root_resource_id" {
description = "The resource ID of the REST API's root"
value = module.this.enabled ? aws_api_gateway_rest_api.this[0].root_resource_id : null
}
output "created_date" {
description = "The date the REST API was created"
value = module.this.enabled ? aws_api_gateway_rest_api.this[0].created_date : null
}
output "execution_arn" {
description = <<EOF
The execution ARN part to be used in lambda_permission's source_arn when allowing API Gateway to invoke a Lambda
function, e.g., arn:aws:execute-api:eu-west-2:123456789012:z4675bid1j, which can be concatenated with allowed stage,
method and resource path.The ARN of the Lambda function that will be executed.
EOF
value = module.this.enabled ? aws_api_gateway_rest_api.this[0].execution_arn : null
}
output "arn" {
description = "The ARN of the REST API"
value = module.this.enabled ? aws_api_gateway_rest_api.this[0].arn : null
}
output "invoke_url" {
description = "The URL to invoke the REST API"
value = module.this.enabled ? aws_api_gateway_stage.this[0].invoke_url : null
}
output "stage_arn" {
description = "The ARN of the gateway stage"
value = module.this.enabled ? aws_api_gateway_stage.this[0].arn : null
}