Questions about the AWS plugin & AWS Lambda

78 views
Skip to first unread message

Yihang Ho

unread,
Nov 12, 2018, 2:34:23 AM11/12/18
to TiddlyWiki
Hi guys!

I'm new here and pretty excited about TiddlyWiki. I think it's going to be super useful for me in school & work. Anyway, I am trying to host a copy of TiddlyWiki on AWS Lambda. My end goal is to have a serverless TiddlyWiki for my own use. I know that I will need the AWS plugin plus some other stuff. So I hope that the community can help answer some of the questions that I have:

1. I tried cloning the repo, install AWS SDK, then run ./tiddlywiki.js editions/aws --build lambda. Now I can see editions/aws/output/index.js. I assume this is the file that I have to deploy to AWS Lambda. Do I also need to upload tiddlywiki.info and tiddlers/* inside editions/aws?

2. As far as I can tell by scanning through the generated index.js (and the documentation) is that what I will get from deploying it to Lambda is essentially the tiddlywiki command that I get by installing TiddlyWiki from NPM. Is that right? 

3. As a result of (2), to achieve what I wanted to, it is not enough to just deploy it to Lambda and slap API Gateway on top of it. I should also write some glue scripts to forward the HTTP requests to the appropriate commands for tiddlywiki. If this is the case, is the something like a specification of the HTTP requests that are required?

Thanks!
Yihang
Reply all
Reply to author
Forward
0 new messages