{"id":21379532,"url":"https://github.com/mfkimbell/aws-basic-ai-image-generation-and-text-summarization","last_synced_at":"2026-07-18T11:02:49.098Z","repository":{"id":257293262,"uuid":"857840650","full_name":"mfkimbell/aws-basic-ai-image-generation-and-text-summarization","owner":"mfkimbell","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-17T15:56:02.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T21:57:36.488Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mfkimbell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-15T18:36:25.000Z","updated_at":"2024-09-17T15:56:06.000Z","dependencies_parsed_at":"2024-09-17T19:57:08.006Z","dependency_job_id":null,"html_url":"https://github.com/mfkimbell/aws-basic-ai-image-generation-and-text-summarization","commit_stats":null,"previous_names":["mfkimbell/aws-basic-ai-image-generation","mfkimbell/aws-basic-ai-image-generation-and-text-summarization"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mfkimbell/aws-basic-ai-image-generation-and-text-summarization","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfkimbell%2Faws-basic-ai-image-generation-and-text-summarization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfkimbell%2Faws-basic-ai-image-generation-and-text-summarization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfkimbell%2Faws-basic-ai-image-generation-and-text-summarization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfkimbell%2Faws-basic-ai-image-generation-and-text-summarization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mfkimbell","download_url":"https://codeload.github.com/mfkimbell/aws-basic-ai-image-generation-and-text-summarization/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfkimbell%2Faws-basic-ai-image-generation-and-text-summarization/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35615525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-18T02:00:07.223Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T10:20:51.320Z","updated_at":"2026-07-18T11:02:49.066Z","avatar_url":"https://github.com/mfkimbell.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aws-basic-ai-image-generation-and-text-summarization\n\n# Lambda Function 1: Image Generation\n\n![imagegen-ezgif com-speed](https://github.com/user-attachments/assets/bd4d3b33-3cc1-4eaa-ae1c-373c800241a3)\n\n\nLambda function to generate an image design using a machine learning model from Bedrock and upload the image to S3.\n\nPurpose:\n- Takes an input prompt related to image specifications.\n- Invokes a Bedrock model to generate a poster image.\n- Uploads the generated image to an S3 bucket.\n- Returns a pre-signed URL for accessing the uploaded poster.\n\nComponents:\n- Initializes logging and Boto3 clients for Bedrock and S3.\n- Processes input prompt from Lambda event.\n- Invokes Bedrock model with input prompt and specific parameters.\n- Retrieves and decodes the generated poster image.\n- Uploads the image to S3 and generates a pre-signed URL.\n- Returns the URL in the Lambda response.\n\nUsage:\n- Triggered by events containing a 'prompt' parameter.\n- Designed to handle image design requests via API Gateway or other event sources.\n\n\n# Lambda Function 2: Text Generation\n\n![Summary-ezgif com-speed](https://github.com/user-attachments/assets/ee1f008b-529b-4c42-8766-92ab0631fdb2)\n\nLambda function to generate text based on a given prompt using the Bedrock service.\n\nPurpose:\n- Takes a textual prompt and generates creative text.\n- Returns the generated text as a response.\n\nComponents:\n- Initializes a Boto3 client for Bedrock.\n- Processes input prompt from Lambda event.\n- Invokes Bedrock model with input prompt and text generation parameters.\n- Reads and extracts generated text from Bedrock response.\n- Returns the generated text in the Lambda response.\n\nUsage:\n- Triggered by events requiring text generation based on user input.\n- Suitable for generating creative textual responses via API Gateway or other event sources.\n\n\n# Additional Notes:\n\n- Ensure Lambda environment has necessary permissions and dependencies (Boto3).\n- Implement error handling for model invocation, S3 upload, and URL generation.\n- Securely manage access to S3 bucket and pre-signed URLs.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfkimbell%2Faws-basic-ai-image-generation-and-text-summarization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfkimbell%2Faws-basic-ai-image-generation-and-text-summarization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfkimbell%2Faws-basic-ai-image-generation-and-text-summarization/lists"}