AWS S3 and Python Lambda with an API Gateway for a simple web form

Subscribers:
1,220
Published on ● Video Link: https://www.youtube.com/watch?v=fQ8Q_wWusYo



Duration: 14:24
319 views
4


In this video we create a static web bucket in Amazon S3. I also create a Lambda with an API gateway to process the a form in that s3 bucket. We also looked at cloudwatch to understand out errors better.

My lambda python code
import json

def lambda_handler(event, context):
#myuser = event['queryStringParameters']['user']

return {
'statusCode': 200,
'body': json.dumps(event["queryStringParameters"])
}

Sample form page - will not be up forever https://mywebsitebucket2day.s3.amazonaws.com/form.html
Sample PHP to process form page - Once again this will not be up forever https://mywebsitebucket2day.s3.amazonaws.com/form.php
Live form working - Will not be up forever https://mywebsitebucket2day.s3.amazonaws.com/formv2.html




Other Videos By Information Technology


2023-07-27AlfredCamera - Turn your old smart phone into a security camera
2023-06-29Test days part2 and taking them at home
2023-06-28Test day.... time for some fun
2023-03-16A few thoughts on AI and ML due to the increased interest as of late
2023-03-15Understanding a bit how init files work and the different run control targets in Linux.
2023-03-13Install openJDK Java and then Installing Oracle Java with an RPM
2023-03-08Playing on our aws ec2 linux with scheduling jobs with at and cron
2023-03-07Selinux Broke Apache - I change httpd to run on another port and selinux did not like it.
2023-03-06Setting Up SELINUX on aws ec2 as well as installing audit2allow
2023-03-03Setting up admin users to use sudo on Amazon Web Services EC2
2023-02-27AWS S3 and Python Lambda with an API Gateway for a simple web form
2023-02-24Setting up an Ethical Hacking Server in AWS - PLEASE STAY ETHICAL
2023-02-23What is the cost for me to switch to Amazon Web Services (AWS)
2023-02-22Why are there so many different Elastic Compute Cloud (EC2) options in AWS
2023-02-21What are some of the other properties of Amazon Web Service (AWS) Simple Storage Service (S3)
2023-02-20AWS S3 finding prior versions of deleted files
2023-02-17Creating Amazon Web Services (AWS) Simple Storage Service (S3) Bucket and enabling versioning
2023-02-16What else can we do with firewalld... masquerade and forward incoming requests
2023-02-14Linux Firewalld and Amazon Security Group (network firewall) change to allow httpd (apache)
2023-02-13Learn and use Amazon Web Services for free with AWS Educate... It has a new focus
2023-02-10AWS Elastic File System (EFS)(NFS) goes away after reboot. Lets add it to the /etc/fstab