<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: M. Abdullah Bin Aftab</title>
    <description>The latest articles on DEV Community by M. Abdullah Bin Aftab (@heighter).</description>
    <link>https://dev.to/heighter</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1276763%2F8516c785-2ecf-4b28-ac6a-a96156980c01.png</url>
      <title>DEV Community: M. Abdullah Bin Aftab</title>
      <link>https://dev.to/heighter</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/heighter"/>
    <language>en</language>
    <item>
      <title>Amazon Q CLI: Rock Paper Scissor with Python 🕹️</title>
      <dc:creator>M. Abdullah Bin Aftab</dc:creator>
      <pubDate>Wed, 04 Jun 2025 04:35:40 +0000</pubDate>
      <link>https://dev.to/heighter/amazon-q-cli-rock-paper-scissor-with-python-2o9f</link>
      <guid>https://dev.to/heighter/amazon-q-cli-rock-paper-scissor-with-python-2o9f</guid>
      <description>&lt;p&gt;In this blog post, I'll walk you through my journey of creating a fun &lt;strong&gt;Rock Paper Scissors&lt;/strong&gt; game using Python and Pygame, with the assistance of &lt;strong&gt;Amazon Q CLI&lt;/strong&gt;. I'll cover everything from setting up the development environment to implementing game mechanics and generating custom assets.&lt;/p&gt;

&lt;h2&gt;
  
  
  🔧 Installing Amazon Q CLI on macOS
&lt;/h2&gt;

&lt;p&gt;Amazon Q CLI is a powerful tool that helped me throughout the development process. Here's how I installed it on my macOS:&lt;/p&gt;

&lt;p&gt;First install the AWS CLI using Homebrew:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew install awscli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then I configured my AWS credentials:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;aws configure
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next, I installed the Amazon Q CLI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install amazon-q-cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After installation, I verified it was working:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;q --version
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I started using Amazon Q by running:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;q chat
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the chat, I asked:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Can you help me structure a Rock Paper Scissors game using Pygame?

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Amazon Q CLI became my coding companion, helping me generate code snippets, debug issues, and even create project documentation.&lt;/p&gt;

&lt;h2&gt;
  
  
  🎮 Designing the Game Structure
&lt;/h2&gt;

&lt;p&gt;Based on Amazon Q's suggestions, I designed the game with three main states:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Menu State:&lt;/strong&gt; The main menu where players can start the game.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Playing State:&lt;/strong&gt; Where players select their move (Rock, Paper, or Scissors).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Result State:&lt;/strong&gt; Displaying the outcome and allowing players to play again.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I created the main game file structure with Amazon Q's help:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;q chat
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I asked:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Can you help me create a main.py file for my Rock Paper Scissors game with state management?

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  🎯 Implementing Game Mechanics
&lt;/h2&gt;

&lt;p&gt;For the core game mechanics, I needed to implement:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Player choice selection&lt;/li&gt;
&lt;li&gt;Computer random choice generation&lt;/li&gt;
&lt;li&gt;Winner determination logic&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  🎁 Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Building this Rock Paper Scissors game was a fun and educational experience. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Amazon Q CLI significantly accelerated my development process by:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Providing code snippets and structure&lt;/li&gt;
&lt;li&gt;Helping debug issues quickly&lt;/li&gt;
&lt;li&gt;Generating documentation&lt;/li&gt;
&lt;li&gt;Offering best practices and optimization tips&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The final game includes:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An intuitive user interface&lt;/li&gt;
&lt;li&gt;Smooth animations and transitions&lt;/li&gt;
&lt;li&gt;Visual feedback with particle effects&lt;/li&gt;
&lt;li&gt;Custom-generated game assets&lt;/li&gt;
&lt;li&gt;Multiple game states for a complete experience&lt;/li&gt;
&lt;li&gt;If you're developing games or any software project, I highly recommend giving Amazon Q CLI a try. It's like having an expert developer by your side, ready to help whenever you need it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;🕹️ To run the game yourself:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git clone https://https://github.com/heighterses/rock-paper-scissor-Q-CLI&lt;/code&gt;&lt;br&gt;
&lt;code&gt;cd rock-paper-scissor-Q-CLI&lt;/code&gt;&lt;br&gt;
&lt;code&gt;pip install pygame&lt;/code&gt;&lt;br&gt;
&lt;code&gt;python main.py&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Enjoy playing Rock Paper Scissors! 🎮&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>ai</category>
      <category>amazonqcli</category>
      <category>amazondeveloper</category>
    </item>
    <item>
      <title>Case Study: Creating an ETL Data Pipeline using AWS Services - Real-World Problem</title>
      <dc:creator>M. Abdullah Bin Aftab</dc:creator>
      <pubDate>Fri, 06 Dec 2024 18:04:47 +0000</pubDate>
      <link>https://dev.to/heighter/case-study-creating-an-etl-data-pipeline-using-aws-services-real-world-problem-1e40</link>
      <guid>https://dev.to/heighter/case-study-creating-an-etl-data-pipeline-using-aws-services-real-world-problem-1e40</guid>
      <description>&lt;h2&gt;
  
  
  Architecture
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4qmojb210e1coimc4d29.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4qmojb210e1coimc4d29.png" alt="Image description" width="800" height="463"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Overview
&lt;/h2&gt;

&lt;p&gt;This ETL pipeline leverages several AWS services to fetch, process, and store YouTube videos with translated subtitles. The core components include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AWS Lambda for processing video and audio&lt;/li&gt;
&lt;li&gt;Step Functions for Orchestrating Workflows&lt;/li&gt;
&lt;li&gt;S3 Buckets for storing raw and processed data&lt;/li&gt;
&lt;li&gt;AWS Transcribe for converting audio to text&lt;/li&gt;
&lt;li&gt;AWS Translate for translating the text into desired languages&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Pipeline Steps
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Fetching Video from YouTube&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Video is fetched from YouTube and sent to an initial Lambda Function.&lt;/li&gt;
&lt;li&gt;This function splits the video into separate audio and video files.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step Functions Orchestration&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AWS Step Functions orchestrate all the following processes.&lt;/li&gt;
&lt;li&gt;The workflow controls each step, passing data between services and managing the pipeline flow.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Storing Raw Video and Audio&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Audio and video files are stored separately here.&lt;/li&gt;
&lt;li&gt;The bucket sends an email notification to confirm the files were successfully stored.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Merging Video and Audio Files&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This Lambda function combines the audio and video files into a single file.&lt;/li&gt;
&lt;li&gt;Error Handling: If merging fails, the pipeline stores the failed files in an Error Bucket.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Transcribing Audio to Text&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The merged video’s audio is sent to AWS Transcribe to convert audio into text.&lt;/li&gt;
&lt;li&gt;The resulting text is passed to the next Lambda function.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Proofreading Transcribed Text&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This Lambda function checks the transcription for accuracy and readability.&lt;/li&gt;
&lt;li&gt;If the text is poor quality, it can be flagged for manual review or re-transcription.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Translating Text into Target Language&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The proofread text is sent to AWS Translate to convert it into a chosen language (e.g., Arabic, Italian, or Spanish).&lt;/li&gt;
&lt;li&gt;The translated text is then passed to the next Lambda function.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Generating Subtitles and Merging Paragraphs&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This function formats the translated text as subtitles and merges paragraphs if needed.&lt;/li&gt;
&lt;li&gt;The final file is prepared for storage.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Storing Processed Video with Subtitles&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The fully processed video with subtitles in the desired language is stored here.&lt;/li&gt;
&lt;li&gt;This is the final output location where the processed video is accessible.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Error Handling
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Error Bucket for Failed Merges:&lt;/strong&gt; If audio and video files fail to merge, the Lambda Merge Function sends them to a designated Error Bucket.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transcription and Proofreading Quality Check:&lt;/strong&gt; Poor transcription quality detected by the Proofread Function can trigger a flag for manual review or re-transcription.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Notifications
&lt;/h2&gt;

&lt;p&gt;**Email Notifications **for File Arrival in S3:After the raw video and audio files are stored in the S3 Raw Video and Audio Bucket, an email notification is sent to confirm successful storage.&lt;/p&gt;




&lt;h2&gt;
  
  
  Benefits of This Pipeline
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Automation:&lt;/strong&gt; Streamlines the entire video processing workflow without manual intervention.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scalability:&lt;/strong&gt; AWS services like Lambda and Step Functions allow the pipeline to handle many videos.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Language Support:&lt;/strong&gt; AWS Translate enables easy translation to multiple languages, broadening the video’s reach.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Error Management:&lt;/strong&gt; Dedicated error-handling buckets and flags ensure issues are logged and handled efficiently.&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>aws</category>
      <category>dataengineering</category>
      <category>data</category>
      <category>cloudcomputing</category>
    </item>
    <item>
      <title>How to Import Pandas(library) in AWS Lambda Functions - AWS Lambda Layers</title>
      <dc:creator>M. Abdullah Bin Aftab</dc:creator>
      <pubDate>Wed, 16 Oct 2024 19:13:43 +0000</pubDate>
      <link>https://dev.to/heighter/how-to-import-pandaslibrary-in-aws-lambda-functions-aws-lambda-layers-1oen</link>
      <guid>https://dev.to/heighter/how-to-import-pandaslibrary-in-aws-lambda-functions-aws-lambda-layers-1oen</guid>
      <description>&lt;p&gt;Imagine you need to run a Python script on the AWS Lambda function and you get this error 🔻&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "errorMessage": "Unable to import module 'lambda_function': No module named 'pandas',
  "errorType": "Runtime.ImportModuleError"
  ...
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;Don't worry this is a common error and I am not going to make this long&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  How do you import Pandas in AWS Lambda Functions?
&lt;/h2&gt;

&lt;p&gt;There are several ways but I am going to give you the easiest way to import pandas in AWS Lambda Function is to add Lambda Layer 🥪&lt;/p&gt;

&lt;h4&gt;
  
  
  What is AWS Lambda Layer?
&lt;/h4&gt;

&lt;p&gt;It is a 🧀 cheese layer in Lambda Function containing additional code like libraries, dependencies, etc.&lt;/p&gt;

&lt;h5&gt;
  
  
  In Simple Words
&lt;/h5&gt;

&lt;p&gt;AWS Lambda Layers are like building blocks for your functions. &lt;strong&gt;Imagine&lt;/strong&gt; you need extra tools (like the Pandas library) to complete a project.&lt;/p&gt;

&lt;p&gt;Instead of packing all those tools inside every single project (which wastes space and time), AWS allows you to create layers of tools (libraries, dependencies, or shared code). &lt;/p&gt;

&lt;p&gt;These layers sit outside your main function but are always available when your function needs them.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;In short, Lambda Layers help you:&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Separate the main logic from the extra libraries to save space in your code. You can reuse libraries and code across multiple Lambda functions.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Easily update or manage your dependencies without changing your core function code.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Think of layers as an extra storage box attached to your Lambda function, holding everything your function needs to work smoothly. You can stack multiple layers on your function without cluttering your main code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Steps to add Lambda Function Layer and Import Pandas
&lt;/h2&gt;

&lt;p&gt;It takes only 3 steps to run Pandas in your Lambda Function successfully&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1 - Open Lambda Function through your AWS Management Console
&lt;/h3&gt;

&lt;p&gt;As you can see we have an option &lt;strong&gt;Layers&lt;/strong&gt; under the name of our Lambda Function, in my case, it's &lt;em&gt;"import-pandas-function"&lt;/em&gt; and the Layers count is &lt;strong&gt;0&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fabn0rsvdm5tsuld3c78c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fabn0rsvdm5tsuld3c78c.png" alt="Image description" width="800" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2- Add Script in your AWS Lambda Function
&lt;/h3&gt;

&lt;p&gt;This step is further divided into two steps because we need to add a Python script that contains some Pandas code and write a test event in JSON to verify whether the code is running correctly.&lt;/p&gt;

&lt;h4&gt;
  
  
  2.1 - Add Python script - you can copy this code 🡻
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import json
import pandas as pd

def lambda_handler(event, context):
    data = event.get('data', [])

    df = pd.DataFrame(data)

    if not df.empty:
        mean_value = df['column_name'].mean()

        result = {
            "mean_value": mean_value,
            "data_shape": df.shape,
            "summary": df.describe().to_dict()
        }
    else:
        result = {
            "message": "Empty DataFrame"
        }

    # Return the response
    return {
        'statusCode': 200,
        'body': json.dumps(result)
    }

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  2.2 - Add Test script in Json in the test tab - you can copy this code 🡻
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "data": [
    {"column_name": 10, "other_column": "A"},
    {"column_name": 20, "other_column": "B"},
    {"column_name": 30, "other_column": "C"},
    {"column_name": 40, "other_column": "D"}
  ]
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Press the test button you probably got the 🔴error:-&lt;br&gt;
&lt;code&gt;"errorMessage": "Unable to import module 'lambda_function': No module named 'pandas',&lt;br&gt;
  "errorType": "Runtime.ImportModuleError"&lt;br&gt;
  ...&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Step 3 - Add AWS Lambda Layer to Successfully run the Pandas in your  Code
&lt;/h2&gt;

&lt;p&gt;Scroll down to your Lambda Function, you probably can see the "&lt;strong&gt;Layers&lt;/strong&gt;" separate section at the end of the page&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F17grr4nr4oiwg2q0dq4v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F17grr4nr4oiwg2q0dq4v.png" alt="Image description" width="800" height="451"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h4&gt;
  
  
  3.1 - Click "Add a Layer"
&lt;/h4&gt;

&lt;p&gt;After Clicking the "Add a Layer" you can see the page which has a couple of sections "Function runtime settings" and "Choose a layer"&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhnejuqy0vir917to8vi0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhnejuqy0vir917to8vi0.png" alt="Image description" width="800" height="451"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h4&gt;
  
  
  3.2 - Click "AWS layers"
&lt;/h4&gt;

&lt;p&gt;You can see three options in the "Choose a layer" section click the "AWS layers".&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frwp9ns0t7o0p5nx3ta2w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frwp9ns0t7o0p5nx3ta2w.png" alt="Image description" width="800" height="449"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h4&gt;
  
  
  3.3 - Choose "AWS layers"
&lt;/h4&gt;

&lt;p&gt;After selecting the AWS layers you can see the dropdown under "AWS layers".&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkbzeshtplbmnvktjt0ch.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkbzeshtplbmnvktjt0ch.png" alt="Image description" width="800" height="449"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h4&gt;
  
  
  3.4 - Choose "AWS layers" and "Version"
&lt;/h4&gt;

&lt;p&gt;In a dropdown of "AWS layers" select -&amp;gt; &lt;strong&gt;AWSSDKPandas-Python312&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg2u5k77yik3mdmsg64ba.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg2u5k77yik3mdmsg64ba.png" alt="Image description" width="800" height="449"&gt;&lt;/a&gt;&lt;br&gt;
In a dropdown of "Version" select -&amp;gt; &lt;strong&gt;13(select the most one)&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcjyama9hl5yfwnb59c7q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcjyama9hl5yfwnb59c7q.png" alt="Image description" width="800" height="449"&gt;&lt;/a&gt;&lt;br&gt;
click the "Add" button&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw7h2f3afl3pf8t6dq9yl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw7h2f3afl3pf8t6dq9yl.png" alt="Image description" width="800" height="449"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h4&gt;
  
  
  3.5 - Make sure the "Function Overview"
&lt;/h4&gt;

&lt;p&gt;When your page is directed to the function overview you can see the layer is added below the function name "import-pandas-function"&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F34yb2fx9lk2d9bygh30c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F34yb2fx9lk2d9bygh30c.png" alt="Image description" width="800" height="449"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Step 4 - Test the Function
&lt;/h2&gt;

&lt;p&gt;You've successfully got the Response &lt;em&gt;"statusCode": 200&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "statusCode": 200,
  "body": "{\"mean_value\": 25.0, \"data_shape\": [4, 2], \"summary\": {\"column_name\": {\"count\": 4.0, \"mean\": 25.0, \"std\": 12.909944487358056, \"min\": 10.0, \"25%\": 17.5, \"50%\": 25.0, \"75%\": 32.5, \"max\": 40.0}}}"
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmyvwqocbt1a9k6wkwuwn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmyvwqocbt1a9k6wkwuwn.png" alt="Image description" width="800" height="449"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;Keep Coding 😎&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>aws</category>
      <category>lambda</category>
      <category>python</category>
      <category>cloudcomputing</category>
    </item>
  </channel>
</rss>
