允许Lambda访问当地的帆DB环境

发布于 2025-02-10 09:20:23 字数 213 浏览 2 评论 0原文

我有一个在AWS中运行的lambda函数,我想接管该功能的输出并将其写入数据库。我还没有准备好部署,它将在其中写入RDS实例,大概是很难完成的。在当地,我正在使用Laravel Sail,我希望能够将结果写入那里的数据库。

那是可能的,我该怎么做?我会更好地抓住结果,手动从AWS手动出现并在开发过程中将它们放在当地的DB中吗?这不是理想的,但是如果暴露我的本地数据库将是某种巨大的努力,那将有效。

I have a lambda function running in AWS and I want to take the output of that function and write it to a database. I'm not quite ready to deploy yet, where it would be writing to an RDS instance and presumably would be trivial to accomplish. Locally I'm using Laravel Sail and I'd like to be able to write the results to the database there.

Is that possible, and how would I do it? Would I be better off just grabbing the results and manually out of AWS and putting them in my local DB while developing? It's not ideal, but it would work if exposing my local db would be some kind of massive endeavor.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

有木有妳兜一样 2025-02-17 09:20:23

这是可能的,我该怎么办?

仅当您想以某种方式将本地数据库公开您的本地数据库。它可能需要在您家的互联网路由器中转发一些端口。

我会更好地抓住结果并手动退出
AWS并在开发时将它们放在我本地的DB中?

是的。

Is that possible, and how would I do it?

Only if you want to expose your local database on the public Internet somehow. It might require some port forwarding in your home's internet router.

Would I be better off just grabbing the results and manually out of
AWS and putting them in my local DB while developing?

Yes absoutely.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文