litestream and tigris restore issue

Has anyone successfully set up backing up with litestream and tigris.
I believe i have the backups going ok but the restore is giving an issue.

I am getting the following error

litestream restore -o mydb.sqlite3 s3://my-bucket.fly.storage.tigris.dev/my-db.sqlite3
2024/11/25 13:42:44 ERROR failed to run error="cannot fetch generations: cannot lookup bucket region: InvalidAccessKeyId: The AWS Access Key Id you provided does not exist in our records.\n\tstatus code: 403, request id: blah, host id: blah"

my litestream.yml looks like this

dbs:
  - path: /litefs/my-db.sqlite3
    meta-path: /data/litefs/my-db.sqlite3-litestream
    replicas:
      - type: s3
        bucket: ${BUCKET_NAME}
        path: my-db.sqlite3
        endpoint: ${AWS_ENDPOINT_URL_S3}
        region: ${AWS_REGION}  
        access-key-id: ${AWS_ACCESS_KEY_ID}
        secret-access-key: ${AWS_SECRET_ACCESS_KEY} 
        force-path-style: true

I have also taken the liberty of adding
LITESTREAM_ACCESS_KEY_ID and LITESTREAM_SECRET_ACCESS_KEY to secrets with the same values of the AWS keys in case litestream is looking for them.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.