terraform-aws-modules / terraform-aws-lambda

Terraform module, which takes care of a lot of AWS Lambda/serverless tasks (build dependencies, packages, updates, deployments) in countless combinations 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/lambda/aws
Apache License 2.0
892 stars 662 forks source link

Lambda Qualified Invoke ARN #384

Closed jemerald closed 1 year ago

jemerald commented 1 year ago

Is your request related to a new offering from AWS?

No

Is your request related to a problem? Please describe.

We are using lambda with provisioned concurrency exposed through HTTP API gateway

Currently the Lambda resource output variable has lambda_function_arn, lambda_function_qualified_arn and lambda_function_invoke_arn. But there is no Invoke ARN for the Qualified ARN. This means when passing it into API Gateway, it doesn't use the provisioned capacity we set.

Describe the solution you'd like.

qualified_invoke_arn was added to the provided 3 months ago - https://github.com/hashicorp/terraform-provider-aws/issues/26439

Please update the module to expose new output variable lambda_function_qualified_invoke_arn

Describe alternatives you've considered.

Can work around this by doing:

replace(
    module.lambda_api.lambda_function_invoke_arn,
    module.lambda_api.lambda_function_arn,
    module.lambda_api.lambda_function_qualified_arn
)

but that is a really ugly hack.

Additional context

NA

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days

github-actions[bot] commented 1 year ago

This issue was automatically closed because of stale in 10 days

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.