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 aPOST
requestbodyFormat
- Content type of the body sent with aPOST
requestheaders
- HTTP request headers to send with the requestmethod
- Defaults toGET
if not present, supportsPOST
mode
- 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