-
-
Save KyMidd/ccf1e1e1f524f8c0d3b86adf77aca844 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
| resource "aws_lambda_function" "GitHubCop_New_Repo_Trigger" { | |
| filename = "${path.module}/GitHubCopRepoTrigger.zip" | |
| function_name = "GitHubCopRepoTrigger" | |
| role = aws_iam_role.Ue1TiGitHubCopNewRepoTriggerRole.arn | |
| handler = "GitHubCopRepoTrigger.lambda_handler" | |
| timeout = 60 | |
| # Layers are packaged code for lambda | |
| layers = [ | |
| # This layer permits us to ingest secrets from Secrets Manager | |
| "arn:aws:lambda:us-east-1:1234567890:layer:AWS-Parameters-and-Secrets-Lambda-Extension:4" | |
| ] | |
| source_code_hash = data.archive_file.githubcop_repo_trigger_lambda.output_base64sha256 | |
| runtime = "python3.7" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment