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

New serverless pattern - s3-sqs-cdk-java #2212

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

mridehalgh
Copy link
Contributor

@mridehalgh mridehalgh commented Mar 26, 2024

Issue #, if available:

Description of changes:
Added Java CDK example that sends notifications from S3 to SQS when an object is created.

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


This CDK stack creates an S3 bucket, allows you to upload objects to that bucket, and will send notifications from S3 to SQS when an object is created in that bucket.

## Testing
Copy link
Contributor

Choose a reason for hiding this comment

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

If you could add S3 bucket name and SQS queue URL in 'Outputs' it would be helpful as getting these details requires additional steps

@@ -0,0 +1,66 @@
# Amazon S3 to Amazon SQS

Java CDK example that Sends notifications from S3 to SQS when an object is created.
Copy link
Contributor

Choose a reason for hiding this comment

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

'sends' (check the case)

cd serverless-patterns/s3-sqs-cdk-java
```

3. From the command line, configure AWS CDK:
Copy link
Contributor

Choose a reason for hiding this comment

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

You may want to mention that bootstrap is required only for first time CDK setup in a given account/region.


1. Upload an object to the S3 bucket created by the deployment.
```bash
aws s3 cp 'test-file-to-upload.txt' s3://<BUCKET_NAME>
Copy link
Contributor

Choose a reason for hiding this comment

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

As you have already provided the .txt file in code, I'd suggest replacing 'test-file-to-upload.txt' with the actual file name test_upload.txt or rename 'test-file-to-upload.txt' with may be <TEST_FILE_TO_UPLOAD>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants