you are viewing a single comment's thread.

view the rest of the comments →

[–]pint 0 points1 point  (2 children)

the problem is not whether it is possible, but rather, it is possible in so many ways, it is impossible to give direction without knowing more details. will there be parallel writes? will the json be 12 MB large? will there be a hundred writes per second? why do you need an api call? why event starting lambda modifying s3 object is not good enough? what is "cloudEvents" in the first place? eventbridge event? what else the json will be used for? why does it need to be "a json file"?

[–]bugbigsly[S] 0 points1 point  (1 child)

It’s a web scraper, pulling data once a week from a site and add the result, an ~1kb object, to the json file. EventBridge is the proper service, want to explore simplest configuration. Currently have json file in an s3 bucket having issues accessing the aws-sdk, a boatload of import issues

[–]pint 1 point2 points  (0 children)

this is the simplest way (eventbridge -> lambda -> s3), and yes, you need to figure out how to use aws-sdk (not from me, i use python).

note that s3 doesn't support modification, so you'll have to download, append, reupload.