trigger AWS CodePipeline on S3 bucket any file change

0

CodePipeline allows to use S3 as a source and it is easy to make it run on a change in some specific file. the question is it possible to make my pipe to wake up on a change in any file? How i would like it to be

gefragt vor einem Jahr1136 Aufrufe
1 Antwort
0

Hi Vlad,

UPDATE: After a few trials, it seems that S3 source works if you provide a single file as ZIP, but NOT if you provide a FOLDER/ *. https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-S3.html

Note
When Amazon S3 is the source provider for your pipeline, you may zip your source file or files into a single .zip and upload the .zip to your source bucket. You may also upload a single unzipped file; however, downstream actions that expect a .zip file will fail.

Indeed, seems that now Code Piepline S3 source action "forces" you to provide a single file (e.g. zipped).

OLD ANSWER: yes, according to https://docs.aws.amazon.com/codepipeline/latest/userguide/create-cloudtrail-S3-source.html, associating S3 with CodePieplines creates an Amazon CloudWatch Events rule and a CloudTrail trail that starts your pipeline when the source changes.

Hope it clarifies and if does I 'd appreciated answer to be accepted so that community can benefit for clarity when searching for similar issues, thanks ;)

profile picture
EXPERTE
beantwortet vor einem Jahr
  • Hi @alatech, so far i was working with GUI, and reading instructions in your answer, i dont see how can i wake my pipe on any file in my bucket. (for some specific file there is no problem)

  • After looking locally, at least S3 triggering works if you provide a zip file as part of the S3 source step. I ll try to see if it works for individual files.

  • Does not seems so as getting The object with key 'folder/ *' does not exist. Updated answer.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen