Tech with Hitch
Tech with Hitch
  • 55
  • 241 346
Master AWS Lambda in Minutes: Complete Guide with Demo & S3 Project
AWS Lambda function QuickStart!! In this tutorial I teach you the basics of Lambda functions covering:
1) What are Lambda functions?
2) How to create Lambdas
3) Adding dependencies
4) Billing
5) AWS Layers
6) A project combining Lambda and S3
To learn more advanced Lambda things please watch my Lambda playlist: th-cam.com/video/iluJFDUh-ck/w-d-xo.html
#awstutorial #awslambda
The code used in the Lambda function for our S3 buckets below please copy and paste this into your function:
import json
import urllib.parse
import boto3
print('Loading function')
s3 = boto3.client('s3')
def lambda_handler(event, context):
# Extract the bucket and key from the event
bucket = event['Records'][0]['s3']['bucket']['name']
key = urllib.parse.unquote_plus(event['Records'][0]['s3']['object']['key'], encoding='utf-8')
try:
# Get the object from S3
response = s3.get_object(Bucket=bucket, Key=key)
file_content = response['Body'].read().decode('utf-8') # Read and decode the file content
# Process the file (in this case, we'll print the content)
process_file(file_content)
# Return success message
return {
'statusCode': 200,
'body': json.dumps('File processed successfully!')
}
except Exception as e:
print(e)
print(f'Error getting object {key} from bucket {bucket}.')
raise e
def process_file(file_content):
"""
This function defines what to do with the content of the file.
Replace this with your own processing logic.
"""
print("Processing file content...")
print(file_content) # For demonstration, we're printing the file content
# You can add additional processing logic here
มุมมอง: 343

วีดีโอ

Prepare for AWS Certified Cloud Practitioner CLF-C02: 30 Exam Questions & Answers
มุมมอง 2.3K3 หลายเดือนก่อน
Hi in this video I go through 30 questions to prep you for the AWS CLF-002 , CCP exam. Questions & Answers if you wish to follow along - github.com/hitchon1/AWS-CLF02-Exams Exam Study Guide - d1.awsstatic.com/training-and-certification/docs-cloud-practitioner/AWS-Certified-Cloud-Practitioner_Exam-Guide.pdf #aws #cloudpractitioner #awstraining
Launch Airflow on an AWS EC2 Instance - Quick and Easy Setup
มุมมอง 1.1K4 หลายเดือนก่อน
I'm going to go through an extremely straight forward way of setting up Airflow on an AWS EC2 instance. It will NOT be free tier but budget-friendly small T2.small Ubuntu EC2 instance. We will install all necessary dependencies, and configure Airflow for a streamlined, scalable workflow using PostgreSQL. We’ll also guide you on configuring security rules and accessing the Airflow web interface....
How I Passed the AWS Cloud Practitioner Exam | My Ranking of the Best Prep Materials
มุมมอง 7K7 หลายเดือนก่อน
In this video I cover some of the study materials that really helped me pass the AWS Cloud Practitioner exam. For more info on the exam visit: aws.amazon.com/certification/certified-cloud-practitioner/ exam study guide: d1.awsstatic.com/training-and-certification/docs-cloud-practitioner/AWS-Certified-Cloud-Practitioner_Exam-Guide.pdf Practice exam quiz 20q: explore.skillbuilder.aws/learn/course...
Create Lambda Layers | Easily Add Python Dependencies to Lambda with AWS Layers
มุมมอง 8K8 หลายเดือนก่อน
In this tutorial we cover how to add popular python packages like requests and beautifulsoup4 as dependencies to a Lambda using AWS Lambda layers. 1) We start by packaging are layer into a virtual enviorment 2) We upload the zipped folder to Lambda layers that has all the dependencies following the correct path 3) We then create a Lambda function and pick custom layer connecting the Lambda to o...
AWS Cloud Quest Cloud Practitioner Full Playthrough
มุมมอง 9K8 หลายเดือนก่อน
This is my full play through of AWS Cloud Quest Cloud Practitioner. Please see my playlist for individual portions of Cloud Quest that you might be stuck on or feel free to check out my AWS Cloud Quest Cloud Practitioner playlist. Where I breakout each level/lab as it's own video. Enjoy! And best of luck with your cloud studies! Timestamps of Cloud Quest levels: 0:00:00 Intro 0:00:51 Cloud Comp...
Google Cloud Functions Python QuickStart: HTTP & Serverless Tutorial with Example
มุมมอง 12K9 หลายเดือนก่อน
Hey in this tutorial I teach how to use Google Cloud Function the serverless competitor to AWS Lambdas. I cover first time setup, a real world example with dependencies, and the billing for billing info refer to - cloud.google.com/functions/pricing 0:00 Google Cloud Overview 0:30 First time cloud function prereqs 1:15 Creating the cloud function 3:30 Inline editor 5:00 Setting up google sheets ...
GPT-4 Powered Google Docs: Easy App Script Connection with OpenAI API
มุมมอง 73410 หลายเดือนก่อน
All code used in this tutorial found here: github.com/hitchon1/google_script Also feel free to connect with me: www.linkedin.com/in/hitchon/ Learn how to use Google Apps Script to make GET requests to the OpenAI API, enabling your documents to interact with the cutting-edge intelligence of GPT-4. This guide will walk you through: -Crafting a Google Apps Script to connect with the OpenAI API. -D...
How to Connect to Microsoft Azure SQL Server with Python (w/ pyodbc)
มุมมอง 3.8K10 หลายเดือนก่อน
I will teach you how to connect to your Azure Microsoft SQL Server using python pyodbc. We will pip install pyodbc and then build a cnxn_str The python code will look something like this: import pyodbc cnxn_str = ( 'DRIVER={ODBC Driver 17 for SQL Server};' 'SERVER=your_server_name.database.windows.net;' 'DATABASE=your_database_name;' 'UID=your_username;' 'PWD=your_password' ) conn = pyodbc.conn...
Setting Up Microsoft SQL Server and Database in Azure: Step-by-Step Start Guide
มุมมอง 22411 หลายเดือนก่อน
Hey all in this tutorial we will be creating a Microsoft SQL server within Azure. We will need to make a database & server. Using serverless option I will show you how to do it for less than $5 per month! Here's a breakdown of what you'll learn: 1) Creating a SQL Server Instance: I'll guide you through the process of setting up a SQL Server instance within Microsoft Azure 2) Establishing a SQL ...
OpenAi Text To Speech TTS | Python Quick Start Tutorial, 5 Min Setup
มุมมอง 3.1K11 หลายเดือนก่อน
The ultimate 5-minute Quick Start Tutorial on OpenAI Text To Speech (TTS) in Python! OpenAI TTS, In this tutorial we go over how to setup Text To Speech using python. I demo various voices and go over the documentation. My experience with OpenAI TTS is that it isn't as good as elevenlabs or other options but is a great option to allow you to build with just the openai API key. 0:00 OpenAITTS Do...
Deploying an OpenAI Streamlit Python App on AWS EC2: Step-by-Step Tutorial (24/7 Continuous Hosting)
มุมมอง 9Kปีที่แล้ว
So this video I teach you how to host Streamlit apps on AWS EC2 so they can be always on (24/7) In this tutorial I host an OpenAI chatbot I call (CatGPT) on an AWS EC2 Instance with Streamlit. The github repo used can be found here:github.com/hitchon1/AssistantAPI_Streamlit Remember you will need to adjust the python file in this repo with your Assistant API & OpenAI API key if you wish to host...
OpenAI Assistant API Quickstart: Streamlit & Python | Building a custom Cat AI in Just 13 Minutes
มุมมอง 3.6Kปีที่แล้ว
Hey all with the recent Assistant API, building a chat bot with Python is easier than ever! We are going to be using Streamlit to build a CyberCat chat bot with the new Assistant API. We will be following the below steps: -Create an assistant -Create a thread -Create messages into the thread -Access and output the message -Poll the messages to make sure it is "success" I recommend reading the d...
Launch a Website with AWS S3 & Route 53 | AWS Static Website, Step by Step
มุมมอง 351ปีที่แล้ว
How to host a website on Amazon S3. Today I will be purchasing the techwithhitch.com domain using Route 53. Then we will be hosting our domain in an S3 bucket. The bucket will have our HTML & CSS files inside and be configured for static hosting. Finally we will be using Route 53 to assign a custom URL. Hopefully to save you some typing here is the policy: { "Version": "2012-10-17", "Statement"...
Effortless AWS EC2 Setup: Host Your Website & Web Apps - Step-by-Step Tutorial
มุมมอง 1.3Kปีที่แล้ว
How to host a website on an EC2 Instance. In today's tutorial I cover how to use an EC2 Instance to host a website. So we will be creating a free tier EC2 instance and then enabling HTTP. Here are some of the commands used: sudo su yum update yum install httpd wget [Insert Zip Template Link] mv * /var/www/html systemctl status httpd systemctl enable httpd systemctl start httpd This is the websi...
OpenAI Assistants API with Python: Beginner's Tutorial - Get Started in 10 Minutes
มุมมอง 1.1Kปีที่แล้ว
OpenAI Assistants API with Python: Beginner's Tutorial - Get Started in 10 Minutes
Develop and Host a Slack API Bot on AWS EC2 Using OpenAI and Python: Step-by-Step Guide
มุมมอง 1.5Kปีที่แล้ว
Develop and Host a Slack API Bot on AWS EC2 Using OpenAI and Python: Step-by-Step Guide
Build a REST API (CRUD) with AWS Lambda, API Gateway & DynamoDB Using Python | Step-by-Step Guide
มุมมอง 18Kปีที่แล้ว
Build a REST API (CRUD) with AWS Lambda, API Gateway & DynamoDB Using Python | Step-by-Step Guide
AWS Lambda & EventBridge: Mastering Scheduled Tasks (Cron Jobs)
มุมมอง 2.6Kปีที่แล้ว
AWS Lambda & EventBridge: Mastering Scheduled Tasks (Cron Jobs)
AWS Lambda & EventBridge: Automating Daily OpenAI Emails about Pokemon with Cron
มุมมอง 686ปีที่แล้ว
AWS Lambda & EventBridge: Automating Daily OpenAI Emails about Pokemon with Cron
VBA & OpenAI Tutorial: Do anything in excel with an openai powered VBA userform
มุมมอง 819ปีที่แล้ว
VBA & OpenAI Tutorial: Do anything in excel with an openai powered VBA userform
AWS SES Lambda Tutorial: Send Emails in 3 Minutes
มุมมอง 1.4Kปีที่แล้ว
AWS SES Lambda Tutorial: Send Emails in 3 Minutes
How to Use OpenAI GPT-3.5 in Excel Formulas with VBA (Updated)
มุมมอง 734ปีที่แล้ว
How to Use OpenAI GPT-3.5 in Excel Formulas with VBA (Updated)
S3 File Upload and Email with Lambda Trigger: AWS Python Step-by-Step Tutorial (Part 2/2)
มุมมอง 1Kปีที่แล้ว
S3 File Upload and Email with Lambda Trigger: AWS Python Step-by-Step Tutorial (Part 2/2)
S3 File Upload with Lambda Trigger: AWS Python Step-by-Step Tutorial (Part 1/2)
มุมมอง 778ปีที่แล้ว
S3 File Upload with Lambda Trigger: AWS Python Step-by-Step Tutorial (Part 1/2)
Combing many CSV & Excel files in a folder using Power Query
มุมมอง 699ปีที่แล้ว
Combing many CSV & Excel files in a folder using Power Query
Connecting OpenAI GPT-4 with Google Sheets (Google Apps Script)
มุมมอง 13Kปีที่แล้ว
Connecting OpenAI GPT-4 with Google Sheets (Google Apps Script)
The Ultimate Power BI Dashboard Tutorial: Visualizing IMDB Movie Data
มุมมอง 2.2Kปีที่แล้ว
The Ultimate Power BI Dashboard Tutorial: Visualizing IMDB Movie Data
Deploying AWS Lambda Functions with Docker and Amazon ECR | large 10GB packages (2023)
มุมมอง 5Kปีที่แล้ว
Deploying AWS Lambda Functions with Docker and Amazon ECR | large 10GB packages (2023)
Create a Chrome Extension in JUST 10 Minutes! | Step-by-Step Easy JavaScript Build (2023)
มุมมอง 139ปีที่แล้ว
Create a Chrome Extension in JUST 10 Minutes! | Step-by-Step Easy JavaScript Build (2023)

ความคิดเห็น

  • @VidelaDiego
    @VidelaDiego 2 ชั่วโมงที่ผ่านมา

    ÉPICO BRO😮 NUEVO SUBB

  • @lhodeniz
    @lhodeniz 5 วันที่ผ่านมา

    how to give domain name? how to fetch updated github repositories. can you explain please

  • @lhodeniz
    @lhodeniz 5 วันที่ผ่านมา

    so clear instructions! thank youuuuu bro

  • @oskee1334
    @oskee1334 5 วันที่ผ่านมา

    Thanks much! still struggling but learned a lot working through issues. I'm getting "errorMessage": "1049 (42000): Unknown database 'mydatabase'". Verified RDS and Lambda are both in same VPC, subnet and sg. BTW, it would be helpful to share code in Github and not switch screen so quickly.

  • @sonalibehere7187
    @sonalibehere7187 7 วันที่ผ่านมา

    Hey, I don't have words to Thank You, this video was super helpful...😇. Thank you so much

  • @erhanoserko
    @erhanoserko 8 วันที่ผ่านมา

    neues Videos bitte weiter !!!!!!

  • @Nuges-z2g
    @Nuges-z2g 12 วันที่ผ่านมา

    Hey All! Did anyone get a response to the Top / Most thumbs Up question here?

  • @Angel_Mania
    @Angel_Mania 13 วันที่ผ่านมา

    I want to become a solutions architect, from where should I start? Directly from solutions architect associate or from cloud practitioner

  • @ikbhalshaik
    @ikbhalshaik 15 วันที่ผ่านมา

    thanks

  • @TheGladiator123
    @TheGladiator123 15 วันที่ผ่านมา

    So how yo make it run on scheduler? Also any idea on how to run dbt project with this (airflow and ec2)

  • @oskee1334
    @oskee1334 16 วันที่ผ่านมา

    Fantastic! I actually learned something new. One thing though, it seems like Lambda code should have been "deployed" at 7 min mark. But it wasn't explicitly mentioned in the video.

  • @tejapanth9714
    @tejapanth9714 16 วันที่ผ่านมา

    Can you please provide the lab video for troubleshoot an aws cloud architect in cloud quest.

  • @tahirbalarabe8081
    @tahirbalarabe8081 17 วันที่ผ่านมา

    Thank you, this is great. Thank you for breaking down each question.

  • @brunodrf2010
    @brunodrf2010 17 วันที่ผ่านมา

    Any chance for "Troubleshoot an AWS Cloud architecture" section ?? In my opinion is a Solutions Architect level.

    • @ayushsingh-nm3hk
      @ayushsingh-nm3hk 13 วันที่ผ่านมา

      Stuck on same

    • @codlman
      @codlman 12 วันที่ผ่านมา

      me too ... have you managed to find something pls

  • @HandsomeSmells
    @HandsomeSmells 23 วันที่ผ่านมา

    How much does that ec2 instance cost? compared to using the free tier version?

  • @mdeeen
    @mdeeen 25 วันที่ผ่านมา

    thanks!!

  • @pietrorusso9074
    @pietrorusso9074 28 วันที่ผ่านมา

    Error unknown function

  • @gabrielcaceres2351
    @gabrielcaceres2351 29 วันที่ผ่านมา

    cool!, what if i have an scenario where i had to make an api call and i have to use my credentials to access this data? what is your recommendation , using env variables with kms encryption? if so, how would that affect on performance?

  • @EchooStudioo
    @EchooStudioo หลายเดือนก่อน

    thanks

  • @DocGatt
    @DocGatt หลายเดือนก่อน

    Thank you

  • @svnitankitm
    @svnitankitm หลายเดือนก่อน

    Thanks for the video . I have a python script which fetches the data from one excel file which is present on my local machine . So where do I have to keep that excel file in AWS so that my python script on EC2 can read that excel file ?

  • @bolajioye
    @bolajioye หลายเดือนก่อน

    Anyone got a fix for the added module for recertification (Troubleshoot an AWS Cloud Architecture)? Please kindly share

    • @tejapanth9714
      @tejapanth9714 16 วันที่ผ่านมา

      I also need that lab.

  • @VishwamTalnikar
    @VishwamTalnikar หลายเดือนก่อน

    what to do when i want to run it continuously until complete execution

  • @nikhilsfamilymoments
    @nikhilsfamilymoments หลายเดือนก่อน

    Hey that was super helpful. Thanks a ton!

  • @noahfisher1955
    @noahfisher1955 หลายเดือนก่อน

    This was perfect, thank you so much!

  • @jtr549
    @jtr549 หลายเดือนก่อน

    For anyone having trouble with packages like paramiko, use EC2 in AWS, basically you just create a free instance with Linux, then quick connect in AWS and you have a terminal, then you follow a similar process. Just use AI to find out what that is but it's pretty basic. This will hopefully save you a couple hours going in circles.

  • @jtr549
    @jtr549 หลายเดือนก่อน

    doesn't work for non python dependencies.

  • @al1rios
    @al1rios หลายเดือนก่อน

    Great work! The video is very well explained. Congratulations!

  • @yankunbigcat7925
    @yankunbigcat7925 หลายเดือนก่อน

    Thank you! Few videos mentioned the importance of the folder path. You cannot simply put all dependencies in a zip. They need to follow the patterns in 4:31.

  • @Vlogs-oq8fp
    @Vlogs-oq8fp หลายเดือนก่อน

    Q17)Reserved Instances are designed for predictable, long-term workloads and provide a discounted rate compared to On-Demand pricing. They are typically purchased for a fixed term (1 or 3 years), which aligns with the “3-year term” mentioned in your question. Here’s how the options compare: 1. Spot Instances: These are best for short-term, interruptible workloads and are priced based on supply and demand, not suitable for long-term commitments. 2. EC2 Instance Savings Plans: These offer flexibility across instance families, sizes, and regions, but they are based on a commitment to a consistent amount of usage (e.g., $/hour) rather than specific instances. 3. Dedicated Hosts: These are physical servers dedicated to your use, often chosen for compliance or licensing reasons, not typically tied to cost-saving over 3 years. 4. Reserved Instances: These offer significant savings (up to 75%) for predictable usage and are purchased for 1 or 3-year terms. Answer: Reserved Instances

  • @RaketMakhim
    @RaketMakhim หลายเดือนก่อน

    that "-t ." was causing me pain

  • @jacqueslee2592
    @jacqueslee2592 หลายเดือนก่อน

    My ADHD is too severe. I have been studying for AWS and Azure on and off for the past 4 years. I always procrastinate and time blindness makes me always study on the last minute. I hope I can study ever day for the next month. My goal is to get this exam by the end of the year so that I can feel at least I accomplish something this year.

    • @ShirionneGivati
      @ShirionneGivati หลายเดือนก่อน

      Take concerta (methylphenidate) it helped me a lot

  • @JohnstownJohnny
    @JohnstownJohnny หลายเดือนก่อน

    Cloud Quest Security is currently garbage. Many of the labs fail or give you the wrong instructions. Example: Securing APIs is junk. The Steps do not match the console. Avoid it. Tks for the great video! JJ

  • @shenaalharshana6830
    @shenaalharshana6830 หลายเดือนก่อน

    Thanks bro

  • @janudabethmin
    @janudabethmin หลายเดือนก่อน

    Thanks for the info.

  • @jayjohnson8963
    @jayjohnson8963 หลายเดือนก่อน

    In VS Code, it has no output

  • @ggonseul
    @ggonseul 2 หลายเดือนก่อน

    can you do another one for solutions architect role?

  • @TheSystematiq
    @TheSystematiq 2 หลายเดือนก่อน

    Thanks a lot. All works great, just one question, how do you Close the process, if pressing ^C just puts it back in background. Cause i don't want to kill it, obviously, as my process has some closing steps that i don't want to be missed.

  • @anubis-i5o
    @anubis-i5o 2 หลายเดือนก่อน

    Thank You, man. Easy and crisp.

  • @t-bonezgames3771
    @t-bonezgames3771 2 หลายเดือนก่อน

    Can you please make a video on troubleshooting an AWS cloud architecture a new module in cloud quest

  • @Test-tp5mp
    @Test-tp5mp 2 หลายเดือนก่อน

    Thank you. Very useful.

  • @IdoMintz
    @IdoMintz 2 หลายเดือนก่อน

    wow Great video!!

  • @ethanbenito4747
    @ethanbenito4747 2 หลายเดือนก่อน

    You don't have to install dependencies to your env? You literally just write in requirements what versions you want??? Edit: From ChatGPT: In Google Cloud Functions, you don't manually install dependencies like you might in a local environment. Instead, you list all your dependencies and their versions in a requirements.txt file. This file goes in the same directory as your main Python file. When you deploy your Cloud Function, Google Cloud uses this requirements.txt to automatically install the specified packages into the environment where your function runs. This makes it easy to manage dependencies for your Cloud Functions!

  • @slaviksemen4919
    @slaviksemen4919 2 หลายเดือนก่อน

    bro, thanks a lot

  • @AkosuaKudom-p5e
    @AkosuaKudom-p5e 2 หลายเดือนก่อน

    Can you do a video for the new troubleshoot assignment in Cloud Quest? That would be really helpful

  • @blajayoye2023
    @blajayoye2023 2 หลายเดือนก่อน

    Good job.. do you have plans of shooting a video of the final part of the quest cloud recertification titled Troubleshoot an AWS Cloud Architecture That will be most helpful

    • @t-bonezgames3771
      @t-bonezgames3771 2 หลายเดือนก่อน

      You found any solution bro ? Because I'm stuck with that specific module

    • @tejapanth9714
      @tejapanth9714 16 วันที่ผ่านมา

      Same issue

    • @codlman
      @codlman 12 วันที่ผ่านมา

      same issue , have someone managed to get through it pls

  • @amarkantsinha9400
    @amarkantsinha9400 2 หลายเดือนก่อน

    Thank you for saving my day!!!

  • @MaheshC-x6x
    @MaheshC-x6x 3 หลายเดือนก่อน

    Which virtual private cloud (VPC) component controls inbound and outbound traffic for Amazon EC2 instances? The component that controls inbound and outbound traffic for Amazon EC2 instances in a Virtual Private Cloud (VPC) is called a Network Access Control List (NACL). NACLs act as a firewall for controlling traffic at the subnet level and can be used to allow or deny traffic based on IP address, protocol, and port number. The correct answer is NACL, SG controls only Inbound Rules.

    • @JoseLuisRB112
      @JoseLuisRB112 2 หลายเดือนก่อน

      A security group acts as a virtual firewall for your instance to control inbound and outbound traffic. NACL is for subnet level.

    • @alexandererameh8028
      @alexandererameh8028 26 วันที่ผ่านมา

      NACL applies strictly to subnets and not to instances, so you are wrong

  • @mystque2196
    @mystque2196 3 หลายเดือนก่อน

    Can you do a walkthrough of the last module for recertify, Troubleshoot an AWS Cloud Architecture?

  • @tscuba100
    @tscuba100 3 หลายเดือนก่อน

    There is a new module in Cloud Quest to Troubleshoot an AWS Cloud Architecture. Can you create a video for this section?