Ivan Roskoshnyi
04/20/2022, 6:38 AMaws-amplify
Storage
module. So when someone creates a file, front-end
app must be aware of it. Has anyone faced this case?Chad (cysense)
04/20/2022, 7:39 AMlambda.addEventSource(new aws_lambda_event_sources.S3EventSource(s3Bucket, {
events: [s3.EventType.OBJECT_CREATED],
filters: [{ prefix: 'bucket-key/' }]
}));
Chad (cysense)
04/20/2022, 7:39 AMIvan Roskoshnyi
04/20/2022, 7:41 AMlambda
, aws_lambda_event_sources
, s3.EventType.OBJECT_CREATED
Are they executed on the front-end or back-end side?Chad (cysense)
04/20/2022, 7:42 AMaws_lambda_event_sources
and aws_s3
are imported from aws-cdk-lib
Chad (cysense)
04/20/2022, 7:43 AMIvan Roskoshnyi
04/20/2022, 7:43 AMChad (cysense)
04/20/2022, 7:44 AMIvan Roskoshnyi
04/20/2022, 7:44 AMChad (cysense)
04/20/2022, 7:46 AMChad (cysense)
04/20/2022, 7:49 AMChad (cysense)
04/20/2022, 7:50 AMsst/cdk
at all and only using amplify you can still do what I said but set it up via amplify:
https://docs.amplify.aws/cli/usage/lambda-triggers/#s3-lambda-triggersIvan Roskoshnyi
04/20/2022, 7:52 AMSST
+ amplify
. I saw this page https://docs.amplify.aws/lib/storage/autotrack/q/platform/js/ but I don’t understand how to use it. Is there a method name or listener on Storage
instance?Lukasz K
04/20/2022, 5:49 PMLukasz K
04/20/2022, 5:50 PMLukasz K
04/20/2022, 5:52 PMIvan Roskoshnyi
04/25/2022, 1:05 PMaws cli
. Do you know how to attach policy using aws-amplify
(npm package) & SST
?Lukasz K
04/25/2022, 2:01 PMLukasz K
04/25/2022, 2:02 PMLukasz K
04/25/2022, 2:03 PMIvan Roskoshnyi
04/25/2022, 2:03 PMaws-amplify
(npm package) doesn't cover a step of how to attach policies to itLukasz K
04/25/2022, 2:05 PMLukasz K
04/25/2022, 2:05 PMIvan Roskoshnyi
04/25/2022, 2:06 PMaws cli
attaches policies under the hood? Maybe we don't need to do this if we use aws-amplify
?Lukasz K
04/25/2022, 2:12 PMIvan Roskoshnyi
04/25/2022, 2:22 PM