-
-
Save KyMidd/d44bfae01119dbb3ab6654d1a8b0c3e4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| data "archive_file" "devopsbot_receiver_lambda" { | |
| type = "zip" | |
| source_file = "python/receiver.py" | |
| output_path = "${path.module}/receiver.zip" | |
| } | |
| resource "aws_lambda_function" "devopsbot_receiver" { | |
| filename = "${path.module}/receiver.zip" | |
| function_name = "DevOpsBotReceiver" | |
| role = aws_iam_role.DevOpsBotReceiverRole.arn | |
| handler = "receiver.lambda_handler" | |
| timeout = 10 | |
| memory_size = 128 | |
| runtime = "python3.12" | |
| architectures = ["arm64"] | |
| source_code_hash = data.archive_file.devopsbot_receiver_lambda.output_base64sha256 | |
| environment { | |
| variables = { | |
| PROCESSOR_FUNCTION_NAME = aws_lambda_function.devopsbot_slack.function_name | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment