aws / serverless-application-model

The AWS Serverless Application Model (AWS SAM) transform is a AWS CloudFormation macro that transforms SAM templates into CloudFormation templates.
https://aws.amazon.com/serverless/sam
Apache License 2.0
9.32k stars 2.38k forks source link

How to reference an existing s3 bucket & prefix #124

Closed wliao008 closed 7 years ago

wliao008 commented 7 years ago

From this example: https://github.com/awslabs/serverless-application-model/blob/master/examples/2016-10-31/s3_processor/template.yaml, it creates a new bucket. However I need to reference an existing bucket, for example, I want to trigger the lambda when a *.yaml file is uploaded to s3:/mybucket/folder?

cellistigs commented 4 years ago

+1

mischka commented 4 years ago

+1

ranajoyviraj commented 4 years ago

going for a new bucket rather than waiting

adfer commented 4 years ago

Check this example: S3-to-EventBridge Explaination: Consuming events from existing S3 buckets -> https://aws.amazon.com/blogs/compute/using-dynamic-amazon-s3-event-handling-with-amazon-eventbridge/ Source code: https://github.com/aws-samples/s3-to-lambda-patterns/blob/master/eventbridge/2-existing-bucket/template.yaml

joshi95 commented 3 years ago

Much needed feature !!

Go-Pomegranate commented 3 years ago

What a disappointment... switching to serverless now, sry guys.

FilipBartos commented 3 years ago

+1

mherma1979 commented 3 years ago

+1

RajivSah commented 3 years ago

+1 :(

m17kea commented 3 years ago

+1

yang-xiaodong commented 3 years ago

+1

jfuss commented 3 years ago

Since there is still activity here: Please leave a +1 (not leave a comment but the reaction on the top comment in the issue) on this issue: https://github.com/aws-cloudformation/aws-cloudformation-coverage-roadmap/issues/79, as SAM cannot do anything due to the lack of support in CloudFormation.