When i do a dvc status
or dvc push
i receive this error:
Initialization error: Config file error: Key 'aws' error:
Wrong keys 'credentialsection' in {'storagepath': '<my_bucket_name>/dvc/svm', 'credentialpath': '/home/mfrata/.aws/credentials', 'credentialsection': 'default'}
My .dvc/config
file is like this:
[Global]
Cloud = aws
[AWS]
StoragePath = <my_bucket_name>/dvc/svm
CredentialPath = /home/mfrata/.aws/credentials
CredentialSection = default
So i did these commands like the docs. But it's not working.
Hi @mfrata !
'CredentialSection' is actually obsoleted name and no longer supported. Renaming it to 'Profile' should make it work.
The docs are actually a bit outdated, we are currently working on updating them.
The modern(and recommended) approach to this would consist of two commands in your case:
$ dvc remote add myremote s3://<my_bucket_name>/dvc/svm
$ dvc config core.remote myremote
because you are using default profile and credpath.
Thanks,
Ruslan
Also remember to substitute <my_bucket_name>
for your desired bucket name.
It worked!!
Renaming CredentialSection
to Profile
didn't worked, but those two magic commands did.
Thank you @efiop and @villasv for the answers.