Restic configuration setup

Hi i am able to download the restic module from syseleven/restic · Puppet module to configure Restic systemd service to backup/forget/restore data. · Puppet Forge

and installing via puppet is good but while taking simple backup i am unable to reload the backup service.

Example:

Initialize Restic repository only on an S3 Bucket

---
classes:
  - restic

restic::repositories:
  some_repo1:
    enable_backup: false
    id: a3f5173hdsks934
    key: y7ahajhsd3uzasa
    password: yxcvasdf1234
    host: some.host.name
    bucket: bucket_name/backup1

Add a simple backup

Configure a repository and backup 2 directories

---
classes:
  - restic

restic::repositories:
  some_repo2:
    backup_path:
      - /full/path/1
      - /some/other/path
    backup_timer: Mon..Sun 20:00:00
    bucket: bucket_name/backup1
    host: some.host.name
    id: a3f5173hdsks934
    key: y7ahajhsd3uzasa
    password: yxcvasdf1234

Error:

etc/systemd/system # systemctl status restic_backup_etc.service
restic_backup_etc.service
Loaded: loaded (/etc/systemd/system/restic_backup_etc.service; static; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2022-09-20 14:58:13 UTC; 1h 14min ago
Main PID: 3755383 (code=exited, status=1/FAILURE)](http://xxxxxxxxx/) systemd[1]: Starting restic_backup_etc.service…
restic[3755383]: Fatal: unable to open config file: Stat: The Access Key Id you provided does not exist in our records.
: Is there a repository at the following location?
restic[3755383]: s3:http://ip:port/restic/xxxxxxxxx
systemd[1]: restic_backup_etc.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: restic_backup_etc.service: Failed with result ‘exit-code’.
systemd[1]: Failed to start restic_backup_etc.service.

It looks like there’s something wrong with the credentials to access S3.