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

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

Closed Fibonaccios closed 1 year ago

Fibonaccios commented 1 year ago

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, "")
}
antonbabenko commented 1 year ago

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

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.