Created
March 23, 2023 20:30
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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