-
Notifications
You must be signed in to change notification settings - Fork 871
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
base: main
Are you sure you want to change the base?
Conversation
|
||
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 |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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>
.
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.