在s3中从静态网站中的按钮触发lambda [英] trigger lambda from a button in a static website in s3

查看:76
本文介绍了在s3中从静态网站中的按钮触发lambda的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个静态网站,该网站的表单包含几个字段.CloudFront位于将流量路由到站点的存储桶的前端.

I have this static website that has a form with a couple of fields. CloudFront is on front of the bucket routing traffic to the site.

所讨论的表单自然具有一个按钮,该按钮可POST到#".

Them form in question naturally has a button that POST to '#'.

有没有一种方法可以使按钮上的点击触发具有表单字段内容的lambda函数?

Is there a way I could make the hits on the button trigger a lambda function with the content of the form's fields?

谢谢.

推荐答案

API网关通常用于从网页调用Lambda函数.

API Gateway is typically used to call the Lambda function from a Web Page.

这是与您的体系结构匹配的基础教程:

Here is a basic tutorial matching your architecture: https://aws.amazon.com/getting-started/projects/build-serverless-web-app-lambda-apigateway-s3-dynamodb-cognito/

这篇关于在s3中从静态网站中的按钮触发lambda的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆