Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit

Permalink
add outputs: lambda_version, lambda_last_modified
Browse files Browse the repository at this point in the history
  • Loading branch information
robertpeteuil committed Jul 29, 2018
1 parent 77fc795 commit fd84e45
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

## Terraform Module Features


Terraform Module allows simple and rapid deployment

- Creates Lambda function, IAM Policies, Triggers, and Subscriptions
Expand Down
13 changes: 9 additions & 4 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@ output "lambda_name" {

output "lambda_arn" {
description = "ARN of created Lambda Function."
value = "${aws_lambda_function.sns_cloudwatchlog.arn}"
value = "${var.lambda_publish_func ? aws_lambda_function.sns_cloudwatchlog.qualified_arn : aws_lambda_function.sns_cloudwatchlog.arn}"
}

output "lambda_endpoint" {
description = "Endpoint of created Lambda Function."
value = "${var.lambda_publish_func ? aws_lambda_function.sns_cloudwatchlog.qualified_arn : aws_lambda_function.sns_cloudwatchlog.arn}"
output "lambda_version" {
description = "Latest published version of Lambda Function."
value = "${aws_lambda_function.sns_cloudwatchlog.version}"
}

output "lambda_last_modified" {
description = "The date the Lambda Function was last modified."
value = "${aws_lambda_function.sns_cloudwatchlog.last_modified}"
}

output "lambda_iam_role_id" {
Expand Down

0 comments on commit fd84e45

Please sign in to comment.