{"id":18907791,"url":"https://github.com/infraspecdev/terraform-aws-lambda-s3-notification","last_synced_at":"2026-01-26T18:03:35.755Z","repository":{"id":185013623,"uuid":"526166385","full_name":"infraspecdev/terraform-aws-lambda-s3-notification","owner":"infraspecdev","description":"This terraform modules provides creates needed to invoke a lambda function on s3 bucket notification events","archived":false,"fork":false,"pushed_at":"2022-08-31T05:38:24.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-12-31T11:57:32.068Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/infraspecdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-18T10:36:10.000Z","updated_at":"2022-08-22T12:30:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"f60dd442-3cca-47be-bfd2-0b8fce0d2af2","html_url":"https://github.com/infraspecdev/terraform-aws-lambda-s3-notification","commit_stats":null,"previous_names":["infraspecdev/terraform-aws-lambda-s3-notification"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infraspecdev%2Fterraform-aws-lambda-s3-notification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infraspecdev%2Fterraform-aws-lambda-s3-notification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infraspecdev%2Fterraform-aws-lambda-s3-notification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infraspecdev%2Fterraform-aws-lambda-s3-notification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infraspecdev","download_url":"https://codeload.github.com/infraspecdev/terraform-aws-lambda-s3-notification/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239891379,"owners_count":19714131,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T09:23:21.351Z","updated_at":"2026-01-26T18:03:30.723Z","avatar_url":"https://github.com/infraspecdev.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-aws-lambda-s3-notification\n\nThis terraform modules provides creates needed to invoke a lambda function on s3 bucket notification events.\n\n\u003c!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n## Requirements\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement\\_terraform) | \u003e= 1.2.0 |\n| \u003ca name=\"requirement_aws\"\u003e\u003c/a\u003e [aws](#requirement\\_aws) | ~\u003e 4.16 |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_aws\"\u003e\u003c/a\u003e [aws](#provider\\_aws) | ~\u003e 4.16 |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [aws_cloudwatch_log_group.lambda_s3](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group) | resource |\n| [aws_iam_role.iam_for_lambda](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource |\n| [aws_iam_role_policy.logs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy) | resource |\n| [aws_iam_role_policy_attachment.lambda_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource |\n| [aws_lambda_function.lambda_s3](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_function) | resource |\n| [aws_lambda_function_event_invoke_config.lambda_s3_invoke_config](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_function_event_invoke_config) | resource |\n| [aws_lambda_permission.allow_s3_invoke_lambda](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_permission) | resource |\n| [aws_s3_bucket_notification.push_to_lambda](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_notification) | resource |\n| [aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_bucket_filter_prefix\"\u003e\u003c/a\u003e [bucket\\_filter\\_prefix](#input\\_bucket\\_filter\\_prefix) | Optional prefix to limit the notifications to objects with keys that start with matching characters | `string` | `\"\"` | no |\n| \u003ca name=\"input_bucket_filter_suffix\"\u003e\u003c/a\u003e [bucket\\_filter\\_suffix](#input\\_bucket\\_filter\\_suffix) | Optional suffix to limit the notifications to objects with keys that end with matching characters | `string` | `\"\"` | no |\n| \u003ca name=\"input_bucket_names\"\u003e\u003c/a\u003e [bucket\\_names](#input\\_bucket\\_names) | List of S3 bucket names to create Event Notifications for. | `list(string)` | n/a | yes |\n| \u003ca name=\"input_directory_path\"\u003e\u003c/a\u003e [directory\\_path](#input\\_directory\\_path) | The path to the directory containing the zip file that will be executed by lambda. Defaults to current directory. | `string` | `\".\"` | no |\n| \u003ca name=\"input_env_vars\"\u003e\u003c/a\u003e [env\\_vars](#input\\_env\\_vars) | A map of env vars to be passed to lambda function | `map(string)` | `{}` | no |\n| \u003ca name=\"input_environment\"\u003e\u003c/a\u003e [environment](#input\\_environment) | This is the environment in which the load balancer will be running | `string` | n/a | yes |\n| \u003ca name=\"input_file_name\"\u003e\u003c/a\u003e [file\\_name](#input\\_file\\_name) | This is the name of the zip file that contains binary to be executed by the lambda | `string` | n/a | yes |\n| \u003ca name=\"input_lambda_execution_policy_arn\"\u003e\u003c/a\u003e [lambda\\_execution\\_policy\\_arn](#input\\_lambda\\_execution\\_policy\\_arn) | The managed policy arn for lambda, for more info: https://docs.aws.amazon.com/lambda/latest/dg/lambda-intro-execution-role.html#permissions-executionrole-features | `string` | `\"arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole\"` | no |\n| \u003ca name=\"input_lambda_timeout\"\u003e\u003c/a\u003e [lambda\\_timeout](#input\\_lambda\\_timeout) | Amount of time your Lambda Function has to run in seconds | `number` | `120` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_aws_iam_role_arn\"\u003e\u003c/a\u003e [aws\\_iam\\_role\\_arn](#output\\_aws\\_iam\\_role\\_arn) | The ARN of the IAM Role created for the lambda function |\n| \u003ca name=\"output_aws_lambda_function_arn\"\u003e\u003c/a\u003e [aws\\_lambda\\_function\\_arn](#output\\_aws\\_lambda\\_function\\_arn) | The ARN of the Lambda Function created |\n\u003c!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n\n## Pre-requisite for PR\n\n### Set up pre-commit\n\n```shell\nbrew install pre-commit\nbrew install terraform-docs\nbrew install tflint\n\npre-commit install\n\n#to run hooks against all files for first time after setup\npre-commit run --all-files\n```\n\nTF docs will be populated as part of pre-commit hook, you would need to commit the changes.\n\nFor further information on pre-commit, visit [this](https://pre-commit.com/#intro).\nFor further information on pre-commit-terraform, visit [this](https://github.com/antonbabenko/pre-commit-terraform).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfraspecdev%2Fterraform-aws-lambda-s3-notification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfraspecdev%2Fterraform-aws-lambda-s3-notification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfraspecdev%2Fterraform-aws-lambda-s3-notification/lists"}