Skip to content

Commit 94b8325

Browse files
committed
fix: updated outputs.tf
1 parent 7b1ff49 commit 94b8325

File tree

4 files changed

+23
-2
lines changed

4 files changed

+23
-2
lines changed

_example/basic/example.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module "api-gateway" {
2020
http_methods = ["GET"]
2121

2222
# Api Gateway Integration
23-
cache_key_parameters = [""]
23+
cache_key_parameters = [""]
2424
integration_types = ["MOCK"]
2525
integration_http_methods = []
2626
uri = [""]

_example/basic/outputs.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,14 @@ output "arn" {
44
value = module.api-gateway.*.execution_arn
55
description = "The Execution ARN of the REST API."
66
}
7+
8+
output "invoke_url" {
9+
value = module.api-gateway.invoke_url
10+
description = " Input's URI. Required if type is AWS, AWS_PROXY, HTTP or HTTP_PROXY. For HTTP integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification "
11+
sensitive = true
12+
}
13+
14+
output "stage_name" {
15+
value = module.api-gateway.stage_name
16+
description = "Name of the stage to create with this deployment. If the specified stage already exists, it will be updated to point to the new deployment."
17+
}

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ resource "aws_api_gateway_rest_api" "default" {
3333
types = var.types
3434
vpc_endpoint_ids = length(var.vpc_endpoint_ids) > 0 && var.vpc_endpoint_ids[0] != "" ? var.vpc_endpoint_ids : null
3535
}
36-
tags = var.tags
36+
tags = var.tags
3737
}
3838

3939

outputs.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,13 @@ output "tags" {
1414
value = module.labels.tags
1515
description = "A mapping of tags to assign to the resource."
1616
}
17+
18+
output "invoke_url" {
19+
value = join("", aws_api_gateway_integration.default.*.uri)
20+
description = " Input's URI. Required if type is AWS, AWS_PROXY, HTTP or HTTP_PROXY. For HTTP integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification "
21+
}
22+
23+
output "stage_name" {
24+
value = join("", aws_api_gateway_deployment.default.*.stage_name)
25+
description = "Name of the stage to create with this deployment. If the specified stage already exists, it will be updated to point to the new deployment."
26+
}

0 commit comments

Comments
 (0)