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 the ltdconveyor.keeper.register_build function. It contains presigned post POST URLs and fields for each directory in the site being uploaded (see the dirnames parameter to register_build).

See also

upload_dir

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-redirect header key. The LSST the Docs Fastly configuration looks for this header, and when detected, redirects the request to the associated */index.html object.