I'm able to run restore-db.sh locally successfully, but in the deploy.yml workflow I'm getting this error:
Step 0: Checking S3 backup bucket write access...
⚠️ Warning: No write access to S3 backup bucket (backups.cv.coderbunker.ca). Skipping pre-deployment backup.
👉 Note: This is expected if you are using a Read-Only staging key for production backups.
Step 0.2: Restoring database from backup-cv.coderbunker.ca-20260122103417.sql.enc...
Loading configuration from .env.cv.staging.coderbunker.ca
Verifying connectivity for restore...
Restoring database backup into cv.staging.coderbunker.ca...
Using specified backup file: backup-cv.coderbunker.ca-20260122103417.sql.enc
Downloading backup-cv.coderbunker.ca-20260122103417.sql.enc...
fatal error: An error occurred (400) when calling the HeadObject operation: Bad Request
but with the permission fix, deployment works so I'll look at this issue later.
Originally posted by @rngadam in #27