Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a pattern to copy an object between two S3 buckets using S3 Event Notification to SQS to EventBridge Pipes to Step Function #2087

Merged
merged 4 commits into from
Mar 25, 2024

Conversation

dastra
Copy link

@dastra dastra commented Feb 4, 2024

Issue #, if available: #2086

Description of changes:

This sample project demonstrates how to copy an object between two S3 buckets and manipulate it in transit. When an object is created in the source S3 bucket, an S3 Event Notification is fires and enqueued onto an SQS Queue. The EventBridge service polls the SQS Queue and invokes an EventBridge pipe. The EventBridge Pipe then executes an AWS Step Functions Express Workflow state machine. This copies the file from the source S3 Bucket to the destination S3 Bucket. In a real world scenario the state machine would be modified to manipulate the file as desired

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…ent Notification to SQS to EventBridge Pipes to Step Function

resolves: aws-samples#2086
@parikhudit
Copy link
Contributor

parikhudit commented Feb 28, 2024

@dastra Thanks for your contribution. Tested it and looks good.
Would you like to add a note that this would work for JSON type objects only or modify the code to support all media types? I think SFN may fail trying to convert non-JSON media types to string.

@@ -0,0 +1,61 @@
{
"title": "Copy an object between two S3 buckets using S3 Event Notification to SQS to EventBridge Pipes to Step Function",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Length needs to be below 75 characters

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated!

@@ -0,0 +1,61 @@
{
"title": "Copy an object between two S3 buckets using S3 Event Notification to SQS to EventBridge Pipes to Step Function",
"description": "Create a Step Functions workflow to query Amazon Athena.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you kindly update this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated!

"name": "Dan Straw",
"image": "https://avatars.githubusercontent.com/u/271028",
"bio": "Senior Solutions Architect at AWS",
"linkedin": "https://www.linkedin.com/in/danstraw/"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only LinkedIn id is required e.g. danstraw

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated!

@julianwood julianwood merged commit 9d65a0a into aws-samples:main Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants