Skip to content

Commit

Permalink
Merge branch 'aws-ia:main' into chore/use-standalone-task-definition
Browse files Browse the repository at this point in the history
  • Loading branch information
luigidifraiawork authored May 29, 2024
2 parents f86e27f + d6e737b commit f0f14b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
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

0 comments on commit f0f14b8

Please sign in to comment.