How to get AWS Lambda ARN using Terraform?
问题 I am trying to define a terraform output block that returns the ARN of a Lambda function. The Lambda is defined in a sub-module. According to the documentation it seems like the lambda should just have an ARN attribute already: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/lambda_function#arn Using that as a source I thought I should be able to do the following: output "lambda_arn" { value = module.aws_lambda_function.arn } This generates the following error: