I need to be able to trigger a Concourse task when a file appears in an Amazon S3 bucket.
当文件出现在Amazon S3存储桶中时,我需要能够触发Concourse任务。
There is this Concourse tool: https://github.com/pivotalservices/concourse-curl-resource
有这个Concourse工具:https://github.com/pivotalservices/concourse-curl-resource
However I am looking to test for the existence of a file, and if it exists, trigger another job, then delete the file to reset.
但是,我希望测试文件是否存在,如果存在,则触发另一个作业,然后删除要重置的文件。
Any suggestions?
有什么建议么?
1 个解决方案
#1
1
The s3 resource can handle this with a versioned file. Every time you update/change the same file, the resource will detect a new update, and then trigger a job.
s3资源可以使用版本化文件处理此问题。每次更新/更改同一文件时,资源都会检测到新的更新,然后触发作业。
#1
1
The s3 resource can handle this with a versioned file. Every time you update/change the same file, the resource will detect a new update, and then trigger a job.
s3资源可以使用版本化文件处理此问题。每次更新/更改同一文件时,资源都会检测到新的更新,然后触发作业。