terraform-aws-modules/terraform-aws-lambda

[Enhancement]: Include lambda function memory_size in outputs.tf

Fibonaccios opened this issue · 2 comments

Is your request related to a problem? Please describe.

Not a problem - just an enhancement.

Describe the solution you'd like.

It would be good to be able to access the memory size of the lambda function in the outputs.tf just like we do for the lambda function name bellow:

output "lambda_function_name" {
  description = "The name of the Lambda Function"
  value       = try(aws_lambda_function.this[0].function_name, "")
}

Code to be added in the outputs.tf for the memory_size:

output "lambda_function_memory_size" {
  description = "The memory size of the Lambda Function"
  value       = try(aws_lambda_function.this[0].memory_size, "")
}

Module outputs attributes returned by the resources. You should use aws_lambda_function data source to retrieve information on the created resources.

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.