Closed kpx-dev closed 8 years ago
The only way to do that is to have one bucket per stage. This is because both lambdas are consuming the same overlapping events s3:ObjectCreated:*
and AWS doesn't enable you to do so.
Give a look to http://gordon.readthedocs.io/en/latest/parameters.html where you'll learn how to create parameters which vary from stage to stage.
Hi guys,
I have my simple s3 event source setting like this at the main
settings.yml
file, to call my lambda when a file is uploaded to a bucket.Now I want to do 2 diff stage, dev and prod. When I deploy with:
gordon build --stage prod
, it overwrites my S3 bucket event source setting fordev
.How can I have 2 S3 triggers triggering diff lambda based on --stage?
Thanks!