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

fix: correct some documentation #215

Merged
merged 3 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions application-code/container-queue-proc/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,11 @@ def resize_image(image_path, resized_path):
def usage_demo():
"""
Shows how to:
* Read the lines from this Python file and send the lines in
batches of 10 as messages to a queue.
* Receive the messages in batches until the queue is empty.
* Reassemble the lines of the file and verify they match the original file.
* Retrieve object metadata from the SQS queue that holds notifications from the source S3 bucket.
* Download each image from the source S3 bucket.
* Resize each image into a standard 224x224 format.
* Upload each resized image to the destination S3 bucket.
* Repeat until the SQS queue is empty.
"""

def unpack_message(msg):
Expand Down
2 changes: 1 addition & 1 deletion terraform/fargate-examples/queue-processing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ terraform apply -auto-approve
```bash
aws s3 cp . s3://ecsdemo-queue-proc-source-xx-xxx-xxx-xx/ecsproc --recursive
```
* Check the SQS queue for the notificatiosn from the S3 bucket file upload, check CloudWatch Container Insights to see the task count increase from the Lambda run_task invocation, and check destination S3 bucket for resizes images.
* Check the SQS queue for the notifications from the S3 bucket file upload, check CloudWatch Container Insights to see the task count increase from the Lambda run_task invocation, and check destination S3 bucket for resizes images.

## Blueprint Architecture

Expand Down
Loading