【发布时间】:2021-09-25 04:57:51
【问题描述】:
我有一个需要重新运行函数的场景,我该怎么做。
def test_cpbucket():
res = s3.copy_object(
Bucket = 'bucket-name',
CopySource: 'bucket-name/hello/21-01-2020-12-23-00/testing.ddl',
Key: 'hello/21-01-2020-12-23-00/testing.ddl',
ACL: 'public-read'
)
在上面的示例中,我将对象复制到同一位置,以便它可以触发我的 lambda 函数。
当 lambda 函数失败时,我需要重新运行 copy s3 的这个函数。我该怎么做?
【问题讨论】:
标签: python python-2.7 amazon-s3 aws-lambda aws-step-functions