Problem when trying to configure S3 storage for backups

I’m trying to test saving backups to an S3 Storage, Artesca in my case, but can’t get it to work, as there is apparently a problem in my configuration file.
I’ve tried creating a profile with storage set to S3 but upon adding the profile it always end with the following errors:

pbm profile add S3profile /mongodb/pbmbackups/pbmS3/S3profile.yaml
Error: parse config: decode: yaml: unmarshal errors:
line 8: field access_key_id not found in type s3.Config
line 9: field secret_access_key not found in type s3.Config

Here is the config file:
storage:
type: s3
s3:
endpointUrl: <correct_endpoint>
bucket: <correct_bucket_name>
region: us-east-1
credentials:
access_key_id: <correct_access_key>
secret_access_key: <correct_secret_key>

Has anyone had any similar issue? I’m on version 2.7.0.
Any help would be much appreciated.
Thanks.

Hi @MarekPlichta !
Your config has bad yaml format, please check it with yaml validator like https://www.yamllint.com/
Example:

[root@rscfg01 /]# cat /etc/bad.yaml 
storage:
type: filesystem
filesystem:
path: /backups
[root@rscfg01 /]# pbm profile add filesystem /etc/bad.yaml
Error: parse config: decode: yaml: unmarshal errors:
  line 2: field type not found in type config.Config
  line 3: field filesystem not found in type config.Config
  line 4: field path not found in type config.Config
[root@rscfg01 /]# cat /etc/good.yaml 
storage:
  type: filesystem
  filesystem:
    path: /backups
[root@rscfg01 /]# pbm profile add filesystem /etc/good.yaml 
OK