Perform operation on Amazon Web Services
--aws <sub-command> [<parameter> ...]Load tiddlers from files in an S3 bucket.
--aws s3-load <region> <bucket> <filename>...The content in the files is deserialized according to the content type reported by S3.
Save a raw tiddler to a file in an S3 bucket.
--aws s3-savetiddler <title> <region> <bucket> <filename> <zipfilename> <savetype>Save raw tiddlers matching a filter to an S3 bucket.
--aws s3-savetiddlers <filter> <region> <bucket> <filenamefilter> <savetypefilter>[encodeuricomponent[]addprefix[files/]addsuffix[.html]])Save the results of rendering a tiddler to a file in an S3 bucket.
--aws s3-rendertiddler <title> <region> <bucket> <filename> <type> <template> <zipfilename> <savetype>Save the results of rendering tiddlers identified by a filter to files in an S3 bucket.
--aws s3-rendertiddlers <filter> <template> <region> <bucket> <filenamefilter> <type> <savetypefilter>[encodeuricomponent[]addprefix[files/]addsuffix[.html]])[is[tiddler]get[type]])--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/756be27c-77cb-482b-95b4-9a32d0be3f28%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
From what I can tell this requires either my wiki to be hosted in a node.js lambda or to be running from a computer with with configured credentials. I can't seem to find where to set the credentials for a browser based session inside the aws plugin code. (I am also having trouble actually running the aws commands from tiddlywiki desktop but I think that is more easily attributed to user error). I don't feel I understand how the lambda hosting works well enough to set it up that way, I am looking for a tutorial but haven't had much luck.
As another possible structure is it possible to create a tiddler based on json returned from a REST API? That would be fairly easy to set up in front of the bucket and I could build some logic into the proxy lambda.
I guess the core of my question is what would be the best way to generate tiddlers based off results of a query of an external service the user can trigger with input parameters. Is there a better way I can be thinking about this?
Thanks,Justin
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/6a62ee63-f5ec-4d26-b824-6e19f6c6771d%40googlegroups.com.
function handleresult(err, data) {
if(err)throw err;
console.log(data.Body.toString('utf-8'));
var tiddlersjson = JSON.parse(data.Body.toString('utf-8'));
console.log(tiddlersjson[0]);
//$tw.wiki.addTiddlers([new $tw.Tiddler($tw.wiki.getModificationFields(), {"title": "Tiddler1","text": "Hello"})])
$tw.wiki.addTiddlers([new $tw.Tiddler($tw.wiki.getModificationFields(), tiddlersjson[0])]);
return data;
}