TiddlyWiki server using AWS Lambda

95 views
Skip to first unread message

desEsseintes

unread,
Oct 24, 2020, 12:19:47 PM10/24/20
to TiddlyWiki
Hi everyone!

I am attempting to set up personal TiddlyWiki notebooks that I can access over the web. I understand that it's possible to set up a Node.js server on an AWS EC2 instance and use the server edition of TW5. However, I don't want to do this - I'd be paying Amazon to run a server 24/7 and I only want to pay for my notebooks when I am reading from or writing to them.

I have been trying to set up a lambda function which can serve my notebooks for me. What I want to do is the following:
  1. When I access `domain.com/notebook` and authenticate, a lambda function loads `notebook` from my S3 bucket and serves it to me.
  2. I read and make changes to my notebook in my browser.
  3. As I make changes, a lambda function saves the modified tiddlers to my S3 bucket.
Is this possible? If so,
  1. How do I get the output of `tiddlywiki editions/aws --build lambda` to serve a notebook?
  2. How do I replace the saver with something that writes to S3?
If I get this working, I promise I'll write a tutorial - I haven't been able to find one, and I think this would be a fantastic way to run TW5: lambdas and S3 are extremely cheap and this would be more convenient than synchronising over DropBox.

Thanks!

PS. Yihang asked a similar question in 2018, but it was unanswered.

Mohamed Amin

unread,
Oct 25, 2020, 9:00:54 AM10/25/20
to TiddlyWiki
Hi desEsseintes,

I'm not an expert , but did you check the AWS plugin? if not, check this Post : https://groups.google.com/forum/#!topic/Tiddlywiki/GwPAfMOKeeo

P.S., I hope to see your tutorial soon :)

Regards
M.A.

desEsseintes

unread,
Oct 25, 2020, 11:12:37 AM10/25/20
to TiddlyWiki
I tried looking at both the AWS plug-in documentation and the code, but was unable to figure it out.
Reply all
Reply to author
Forward
0 new messages