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

已提問 1 年前檢視次數 1134 次
1 個回答
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
專家
已回答 1 年前
  • 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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南