Dvc: Aws setup error

Created on 23 May 2018  路  3Comments  路  Source: iterative/dvc

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.

All 3 comments

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!!
image

Renaming CredentialSection to Profile didn't worked, but those two magic commands did.

Thank you @efiop and @villasv for the answers.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dmpetrov picture dmpetrov  路  35Comments

kevin-hanselman picture kevin-hanselman  路  37Comments

yukw777 picture yukw777  路  45Comments

pared picture pared  路  73Comments

Suor picture Suor  路  39Comments