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 [ Ссылка ]
Sample PHP to process form page - Once again this will not be up forever [ Ссылка ]
Live form working - Will not be up forever [ Ссылка ]
Ещё видео!