This tool is a Go application that generates presigned URLs for all objects in a specified Backblaze B2 bucket. The presigned URLs allow you to download objects securely and are written to a presigned_urls.txt file.
Features
Generate Presigned URLs: Creates presigned URLs for all objects or objects with a specific prefix in a Backblaze B2 bucket.
Customizable URL Expiration: Set the expiration time for the presigned URLs.
Environment Configuration: Uses a .env file to manage configuration and credentials securely.
Support for Object Prefixes: Optionally generate URLs for objects with a specific prefix.
Prerequisites
Go Language: You need to have Go installed (version 1.16 or higher recommended).
Backblaze B2 Account: A Backblaze B2 account with an application key and key ID.
Installation
Clone the Repository:
git clone https://github.com/JasonL111/S3_presigned_URL.git
cd S3_presigned_URL
Install dependenciesgo mod tidy
Usage
Prepare the .env file: Create a .env file in the root directory of the project. Example::