AWS Lambda是否存储上次运行时间? [英] Does AWS Lambda Store Last Run Time?

查看:68
本文介绍了AWS Lambda是否存储上次运行时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将unix时间戳传递给API get请求作为另一个系统的参数,以获取数据.该参数必须是上一次运行AWS Lambda的时间.我需要某种方式存储上一次AWS lambda函数遇到s3存储桶的时间,并且还应恢复该时间戳记.因此,我可以将该值传递给下一次运行.

I am trying to pass a unix timestamp into API get request as a parameter to another system to grab data. The parameter needs to be the last time the AWS Lambda ran. I need to somehow store the last time the AWS lambda function has ran into maybe an s3 bucket and also recover that timestamp. So I can pass that value along into the next run.

有人对如何做这样的事情有任何想法吗?

Anyone have any ideas on how to do something like this?

推荐答案

可以从AWS Lambda函数访问的快速数据库是

A quick database you could access from an AWS Lambda function is AWS Systems Manager Parameter Store.

您可以存储简单的信息,例如配置设置,数据库URL甚至上次执行时间!

You can store simple information such as configuration settings, URLs to databases and even... the last execution time!

IAM权限可用于限制对特定参数的访问.

IAM permissions can be used to limit access to specific parameters.

这篇关于AWS Lambda是否存储上次运行时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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