Skip to content

Instantly share code, notes, and snippets.

@hendrixroa
Created March 23, 2023 20:30
Show Gist options
  • Save hendrixroa/e8fab61a3637a57be09f1226ee0cdfe4 to your computer and use it in GitHub Desktop.
Save hendrixroa/e8fab61a3637a57be09f1226ee0cdfe4 to your computer and use it in GitHub Desktop.
AWS Lambda test invocation to run lambda code passing an input once the functions has been deployed.
resource "aws_lambda_invocation" "lambda_invocation" {
function_name = "NoiselesstechExample"
input = jsonencode({
hello = "world"
data = "my super data"
goodbye = "see you"
})
triggers = {
redeployment = timestamp()
}
depends_on = [
module.lambda_noiselesstech,
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment