Skip to content

Commit

Permalink
Update output so the ARN can't be accessed until the function creatio…
Browse files Browse the repository at this point in the history
…n is complete (all permissions applied)
  • Loading branch information
KyleKotowick committed Oct 3, 2021
1 parent 8156bf9 commit ac21d5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
output "invicton_labs_lambda_shell_arn" {
description = "The ARN of the Lambda function. The output is oddly named because it's used to ensure that the correct module is passed into the lambda-shell-resource and lambda-shell-data modules."
value = module.shell_lambda.lambda.arn
// Use the "complete" output of the inner Lambda module so that the function ARN can't be used until everything has been completed (permissions have been applied)
value = module.shell_lambda.complete ? module.shell_lambda.lambda.arn : module.shell_lambda.lambda.arn
}

0 comments on commit ac21d5e

Please sign in to comment.