Closed matheusrufca closed 6 years ago
@matheusrufca
The value of the config
property is directly send to the constructor of the credential class (in that case FileSystemCredentials
, s. official documentation) of the aws-sdk, so it must contain the (full) path of the file.
{
"targets": [
{
// ..
"credentials": {
"type": "file",
"config": "/full/path/to/aws-credential.json"
},
// ..
}
]
}
}
Relative paths will not work as expected. I think they would be fully mapped to the working directory of the VSCode process or to the extension's directory, instead to workspace directory.
Thanks @mkloubert! . It works. I've tried put relative path directly on config property but vs-code warns the following message when string is passed:
@matheusrufca
Now I understand why you thought, that you have to put an object as setting value there. This makes it a little bit unclear, of course :-)
But it is only a minor mistake in the package.json, Only something for the setting editor.
I will fix this. Thanks!
@mkloubert in fact,
putting a string on config was my first try, but i set workspace relative path and didn't work, then I tried a lot of variations, but as output message says that credentials is missing, mostly of my tries was putting an credentials
object inside of config
.
But it's working now.
Great vscode extension, works perfectly for my needs.
I'm getting error when trying to deploy on S3 bucket.
Setting my credential type to
"file"
, what should I put onconfig
prop?Deploy output:
settings.json: