Skip to content

Develop AWS architectures for S3 event notifications with Lambda, SNS, and SQS using Terraform ☁️

License

Notifications You must be signed in to change notification settings

biagioPiraino/s3-event-notification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

S3 Event Notifications

Description

Develop AWS architectures for S3 event notifications with Lambda, SNS, and SQS using Terraform.


Architectures Developed

Architecture Integrations
S3 Event Notification AWS Lambda Function
S3 Event Notification AWS Simple Notification Service
S3 Event Notification AWS Simple Queue Service
S3 Event Notification Fanout Pattern

How to use

Architecture Instructions
lambda-integration
  1. Create the environment variables specifying the region_deployment and an AWS account's access_key and secret_key.
  2. Modify the deployment package according to your needs.
  3. Run terraform init -> terraform plan -> terraform apply from your terminal.
sns-integration
  1. Create the environment variables specifying the region_deployment, the personal_email endpoint and an AWS account's access_key and secret_key.
  2. Confirm the subscription to the SNS topic from the email account specified in the personal_email endpoint
  3. Run terraform init -> terraform plan -> terraform apply from your terminal.
sqs-integration
  1. Create the environment variables specifying the region_deployment, and an AWS account's access_key and secret_key.
  2. Run terraform init -> terraform plan -> terraform apply from your terminal.
fanout-pattern
  1. Create the environment variables specifying the region_deployment, and an AWS account's access_key and secret_key.
  2. Modify the SNS subscription filters inside the sns.tf script according to your needs.
  3. Run terraform init -> terraform plan -> terraform apply from your terminal.

References

References
Enable S3 event notifications
Create a S3 bucket using Terraform
Create S3 event notifications using Terraform
Tutorial: using an Amazon S3 trigger to invoke a Lambda function
Define Lambda function's role
Define a Lambda function using Terraform
Define Lambda function's permissions using Terraform
Working with Lambda functions, developer reference
Create an SNS topic using Terraform
Configuring a bucket for notifications
Create an IAM policy document using Terraform
Create a SNS topic subscription using Terraform
Create a SQS using Terraform
SNS message filtering
Create SNS message filters for S3 event notifications

About

Develop AWS architectures for S3 event notifications with Lambda, SNS, and SQS using Terraform ☁️

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages