0

I need to be able to trigger a Concourse task when a file appears in an Amazon S3 bucket.

There is this Concourse tool: 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?

Luís Soares
  • 5,726
  • 4
  • 39
  • 66
ether_joe
  • 1,068
  • 1
  • 13
  • 32

1 Answers1

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.

jtarchie
  • 251
  • 2
  • 13
  • The s3 resource can be set to watch for files that don't exist yet. You can point it at a nonexistent file and set it to trigger whenever a new version of that file is detected. – Andrew Edstrom Aug 02 '17 at 17:02