Skip to content

Commit 05da6b1

Browse files
feat: Added API GW Authorizer IDs to outputs (#76)
1 parent 40809d1 commit 05da6b1

File tree

5 files changed

+12
-1
lines changed

5 files changed

+12
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ No modules.
182182
| <a name="output_apigatewayv2_api_execution_arn"></a> [apigatewayv2\_api\_execution\_arn](#output\_apigatewayv2\_api\_execution\_arn) | 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. |
183183
| <a name="output_apigatewayv2_api_id"></a> [apigatewayv2\_api\_id](#output\_apigatewayv2\_api\_id) | The API identifier |
184184
| <a name="output_apigatewayv2_api_mapping_id"></a> [apigatewayv2\_api\_mapping\_id](#output\_apigatewayv2\_api\_mapping\_id) | The API mapping identifier. |
185+
| <a name="output_apigatewayv2_authorizer_id"></a> [apigatewayv2\_authorizer\_id](#output\_apigatewayv2\_authorizer\_id) | The map of API Gateway Authorizer identifiers |
185186
| <a name="output_apigatewayv2_domain_name_api_mapping_selection_expression"></a> [apigatewayv2\_domain\_name\_api\_mapping\_selection\_expression](#output\_apigatewayv2\_domain\_name\_api\_mapping\_selection\_expression) | The API mapping selection expression for the domain name |
186187
| <a name="output_apigatewayv2_domain_name_arn"></a> [apigatewayv2\_domain\_name\_arn](#output\_apigatewayv2\_domain\_name\_arn) | The ARN of the domain name |
187188
| <a name="output_apigatewayv2_domain_name_configuration"></a> [apigatewayv2\_domain\_name\_configuration](#output\_apigatewayv2\_domain\_name\_configuration) | The domain name configuration |

examples/complete-http/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ No inputs.
7171
| <a name="output_api_endpoint"></a> [api\_endpoint](#output\_api\_endpoint) | FQDN of an API endpoint |
7272
| <a name="output_api_fqdn"></a> [api\_fqdn](#output\_api\_fqdn) | List of Route53 records |
7373
| <a name="output_apigatewayv2_api_api_endpoint"></a> [apigatewayv2\_api\_api\_endpoint](#output\_apigatewayv2\_api\_api\_endpoint) | The URI of the API |
74+
| <a name="output_apigatewayv2_authorizer_id"></a> [apigatewayv2\_authorizer\_id](#output\_apigatewayv2\_authorizer\_id) | The map of API Gateway Authorizer identifiers |
7475
| <a name="output_apigatewayv2_domain_name_configuration"></a> [apigatewayv2\_domain\_name\_configuration](#output\_apigatewayv2\_domain\_name\_configuration) | The domain name configuration |
7576
| <a name="output_apigatewayv2_domain_name_id"></a> [apigatewayv2\_domain\_name\_id](#output\_apigatewayv2\_domain\_name\_id) | The domain name identifier |
7677
| <a name="output_apigatewayv2_hosted_zone_id"></a> [apigatewayv2\_hosted\_zone\_id](#output\_apigatewayv2\_hosted\_zone\_id) | The Amazon Route 53 Hosted Zone ID of the endpoint |

examples/complete-http/main.tf

-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,6 @@ resource "tls_private_key" "private_key" {
304304
}
305305

306306
resource "tls_self_signed_cert" "example" {
307-
key_algorithm = tls_private_key.private_key.algorithm
308307
is_ca_certificate = true
309308
private_key_pem = tls_private_key.private_key.private_key_pem
310309

examples/complete-http/outputs.tf

+5
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,8 @@ output "api_endpoint" {
135135
description = "FQDN of an API endpoint"
136136
value = "https://${aws_route53_record.api.fqdn}"
137137
}
138+
139+
output "apigatewayv2_authorizer_id" {
140+
description = "The map of API Gateway Authorizer identifiers"
141+
value = module.api_gateway.apigatewayv2_authorizer_id
142+
}

outputs.tf

+5
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,8 @@ output "apigatewayv2_vpc_link_arn" {
9797
description = "The map of VPC Link ARNs"
9898
value = { for k, v in aws_apigatewayv2_vpc_link.this : k => v.arn }
9999
}
100+
101+
output "apigatewayv2_authorizer_id" {
102+
description = "The map of API Gateway Authorizer identifiers"
103+
value = { for k, v in aws_apigatewayv2_authorizer.this : k => v.id }
104+
}

0 commit comments

Comments
 (0)