Skip to content

Commit

Permalink
fix: updated outputs.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
mamrajyadav committed Jun 12, 2023
1 parent 7b1ff49 commit 94b8325
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _example/basic/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module "api-gateway" {
http_methods = ["GET"]

# Api Gateway Integration
cache_key_parameters = [""]
cache_key_parameters = [""]
integration_types = ["MOCK"]
integration_http_methods = []
uri = [""]
Expand Down
11 changes: 11 additions & 0 deletions _example/basic/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,14 @@ output "arn" {
value = module.api-gateway.*.execution_arn
description = "The Execution ARN of the REST API."
}

output "invoke_url" {
value = module.api-gateway.invoke_url
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 "
sensitive = true
}

output "stage_name" {
value = module.api-gateway.stage_name
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."
}
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ resource "aws_api_gateway_rest_api" "default" {
types = var.types
vpc_endpoint_ids = length(var.vpc_endpoint_ids) > 0 && var.vpc_endpoint_ids[0] != "" ? var.vpc_endpoint_ids : null
}
tags = var.tags
tags = var.tags
}


Expand Down
10 changes: 10 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,13 @@ output "tags" {
value = module.labels.tags
description = "A mapping of tags to assign to the resource."
}

output "invoke_url" {
value = join("", aws_api_gateway_integration.default.*.uri)
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 "
}

output "stage_name" {
value = join("", aws_api_gateway_deployment.default.*.stage_name)
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."
}

0 comments on commit 94b8325

Please sign in to comment.