mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-10-02 17:00:45 +00:00
2381fb5312
Instead of the simple ‘prefix’ and ‘extension’ parameters, we now accept a filename filter. As well as allowing prefixes and suffixes to be added via filter operators, we can also transform the title
87 lines
3.0 KiB
Plaintext
87 lines
3.0 KiB
Plaintext
title: $:/language/Help/aws
|
|
description: Operations for working with Amazon Web Services
|
|
|
|
! Commands
|
|
|
|
Perform operation on Amazon Web Services
|
|
|
|
```
|
|
--aws <sub-command> [<parameter> ...]
|
|
```
|
|
|
|
! "s3-load" subcommand
|
|
|
|
Load tiddlers from files in an S3 bucket.
|
|
|
|
```
|
|
--aws s3-load <region> <bucket> <filename>...
|
|
```
|
|
|
|
* ''region'': AWS region
|
|
* ''bucket'': name of the bucket containing the files
|
|
* ''filename'': one or more filenames of the files to load
|
|
|
|
The content in the files is deserialized according to the content type reported by S3.
|
|
|
|
! "s3-savetiddler" subcommand
|
|
|
|
Save a raw tiddler to a file in an S3 bucket.
|
|
|
|
```
|
|
--aws s3-savetiddler <title> <region> <bucket> <filename> <zipfilename> <savetype>
|
|
```
|
|
|
|
* ''title'': title of the tiddler to save
|
|
* ''region'': AWS region
|
|
* ''bucket'': name of the bucket to save the saved file
|
|
* ''filename'': filename of the saved file
|
|
* ''zipfilename'': optional; the file will be packed into a ZIP file with the specified name
|
|
* ''savetype'': optional; the MIME type for the saved file (defaults to ''type'' or "text/html")
|
|
|
|
! "s3-savetiddlers" subcommand
|
|
|
|
Save raw tiddlers matching a filter to an S3 bucket.
|
|
|
|
```
|
|
--aws s3-savetiddlers <filter> <region> <bucket> <filenamefilter> <savetype>
|
|
```
|
|
|
|
* ''filter'': filter identifying tiddlers to render
|
|
* ''region'': AWS region
|
|
* ''bucket'': name of the bucket to save the files
|
|
* ''filenamefilter'': filter for converting tiddler titles to filepaths (eg `[encodeuricomponent[]addprefix[files/]addsuffix[.html]]`)
|
|
* ''savetype'': optional; the MIME type for the saved file (defaults to ''type'' or "text/html")
|
|
|
|
! "s3-rendertiddler" subcommand
|
|
|
|
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>
|
|
```
|
|
|
|
* ''title'': title of the tiddler to render
|
|
* ''region'': AWS region
|
|
* ''bucket'': name of the bucket to save the rendered file
|
|
* ''filename'': filename of the rendered file
|
|
* ''type'': optional render type (defaults to "text/html")
|
|
* ''template'': optional template (defaults to directly rendering the tiddler without using a template)
|
|
* ''zipfilename'': optional; the file will be packed into a ZIP file with the specified name
|
|
* ''savetype'': optional; the MIME type for the saved file (defaults to ''type'' or "text/html")
|
|
|
|
! "s3-rendertiddlers" subcommand
|
|
|
|
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> <savetype>
|
|
```
|
|
|
|
* ''filter'': filter identifying tiddlers to render
|
|
* ''template'': template for rendering each tiddler
|
|
* ''region'': AWS region
|
|
* ''bucket'': name of the bucket to save the rendered file
|
|
* ''filenamefilter'': filter for converting tiddler titles to filepaths (eg `[encodeuricomponent[]addprefix[files/]addsuffix[.html]]`)
|
|
* ''type'': optional render type (defaults to "text/html")
|
|
* ''savetype'': optional; the MIME type for the saved file (defaults to ''type'' or "text/html")
|