upload_directory_objects¶
- ltdconveyor.s3.presignedpost.upload_directory_objects(*, post_urls)¶
Upload directory redirect objects for an LSST the Docs product build.
- Parameters:
post_urls (
dict) – This dictionary is obtained from the"post_dir_urls"field of theltdconveyor.keeper.register_buildfunction. It contains presigned post POST URLs and fields for each directory in the site being uploaded (see thedirnamesparameter toregister_build).- Return type:
See also
Notes
Directory redirect objects in S3 are named after directories, don’t have a trailing slash in their key name, and don’t have any content. What they do have is a
x-amz-meta-dir-redirectheader key. The LSST the Docs Fastly configuration looks for this header, and when detected, redirects the request to the associated*/index.htmlobject.