web
A web asset delivers web content from a private or public URL
Required Parameters
dest- A path to which the file should be written when generating assetsurl- A public or private URL to pull content from
Optional Parameters
body- Content to send with aPOSTrequestbodyFormat- Content type of the body sent with aPOSTrequestheaders- HTTP request headers to send with the requestmethod- Defaults toGETif not present, supportsPOSTmode- Unix file permissions to set on the assetwhen- This asset will be included when ‘when’ is omitted or true
Examples
assets:
v1:
- web:
url: 'https://my_bucket.s3.amazonaws.com/path-to-file'
dest: ./my-bucket-contents