A simple Google Docs AppScript that exports to current doc as a PDF and pushes it to an S3 bucket that you own.
- Open the GAS project for your Google Doc via Extensions -> AppScript.
- Create a new Script called pushToS3 (or whatever you want).
- Replace BUCKET_REGION, BUCKET_NAME, BUCKET_ACCESS_KEY, and BUCKET_SECRET_ACCESS_KEY with their respective credentials.
- Reload your doc to show the "Export PDF to S3" dropdown menu.
- Select the "Ship It!" button and authorize the script.
Do not hard code sensitive credentials (ie - for a role that has permissions to do anything other than upload this file) into the script