necatiarslan / aws-s3 Goto Github PK
View Code? Open in Web Editor NEWAws S3 Extension for VsCode
License: Apache License 2.0
Aws S3 Extension for VsCode
License: Apache License 2.0
Hi. Thanx for your VSCode extension !
I'm having issues connecting to a CEPH S3 storage that I can otherwise access perfectly well in a Jupyter notebook with s3fs
:
s3 = s3fs.S3FileSystem(
key=access_key,
secret=secret_access_key,
client_kwargs={
'endpoint_url': endpoint_url
}
)
Now, I've put a credentials file in HOME/.aws :
[default]
aws_access_key_id=my_access_key
aws_secret_access_key=my_secret_access_key
endpoint_url = http://my_url
thinking it might automagically work with your extension but instead I get a warning from your extension : "Your Aws Access method is not credentials file".
Any hints ?
Thank you !
Hello! thanks for implementing this! I get this Error when trying to access a bucket:
api.GetBucketList Error !!! | CredentialsError | Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1
I'm logged in using SSO and select the right profile.
Hello,
It seems as though my sax package is not parsing correctly when I am trying to access my S3 bucket via the extension. I have confirmed that my credentials are correct and that my sax package is fully updated. Please refer to the images below for the errors
api.GetBucketList Error !!!
XMLParserError
Unexpected close tag
Line: 15
Column: 7
Char: >
XMLParserError: Unexpected close tag
Line: 15
Column: 7
Char: >
at error (c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\sax\lib\sax.js:667:10)
at strictFail (c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\sax\lib\sax.js:693:7)
at closeTag (c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\sax\lib\sax.js:887:9)
at SAXParser.write (c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\sax\lib\sax.js:1449:13)
at exports.Parser.Parser.parseString (c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\xml2js\lib\parser.js:322:31)
at Parser.parseString (c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\xml2js\lib\parser.js:5:59)
at NodeXmlParser.parse (c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\aws-sdk\lib\xml\node_parser.js:31:10)
at Request.extractData (c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\aws-sdk\lib\protocol\rest_xml.js:96:23)
at Request.callListeners (c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\aws-sdk\lib\sequential_executor.js:106:20)
at Request.emit (c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\aws-sdk\lib\sequential_executor.js:78:10)
at Request.emit (c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\aws-sdk\lib\request.js:686:14)
at Request.transition (c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\aws-sdk\lib\request.js:22:10)
at AcceptorStateMachine.runTo (c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\aws-sdk\lib\state_machine.js:14:12)
at c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\aws-sdk\lib\state_machine.js:26:10
at Request.<anonymous> (c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\aws-sdk\lib\request.js:38:9)
at Request.<anonymous> (c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\aws-sdk\lib\request.js:688:12)
at Request.callListeners (c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\aws-sdk\lib\sequential_executor.js:116:18)
at Request.emit (c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\aws-sdk\lib\sequential_executor.js:78:10)
at Request.emit (c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\aws-sdk\lib\request.js:686:14)
at Request.transition (c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\aws-sdk\lib\request.js:22:10)
at AcceptorStateMachine.runTo (c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\aws-sdk\lib\state_machine.js:14:12)
at c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\aws-sdk\lib\state_machine.js:26:10
at Request.<anonymous> (c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\aws-sdk\lib\request.js:38:9)
at Request.<anonymous> (c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\aws-sdk\lib\request.js:688:12)
at Request.callListeners (c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\aws-sdk\lib\sequential_executor.js:116:18)
at callNextListener (c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\aws-sdk\lib\sequential_executor.js:96:12)
at IncomingMessage.onEnd (c:\Users\vsamuel\.vscode\extensions\necatiarslan.aws-s3-vscode-extension-1.5.0\node_modules\aws-sdk\lib\event_listeners.js:417:13)
at IncomingMessage.emit (node:events:525:35)
at IncomingMessage.emit (node:domain:489:12)
at endReadableNT (node:internal/streams/readable:1359:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
I have multiple profiles defined in my .aws\config file. How do I switch between the profiles? It would seem that AWS-S3 always selects default profile. thx.
-M
Hello,
First, thanks for this vscode extension !
I'm using this extension for local usage (custom enpoint parameter is very useful).
I have multiples profiles with differents credentials. Profiles cannot list all buckets for security purposes.
When I try to add a bucket by name, it's trying to list all (see error below).
Would it be possible to try to connect directly to the bucket before (or instead) of trying to list them all ?
api.GetBucketList Error !!!
AccessDenied
Access Denied
AccessDenied: Access Denied
I'm trying to use this extension with an S3 bucket provisioned by someone else and I don't have access at the bucket level. My permissions apply to a specific folder (subdirectory) of the bucket only. I am able to successfully work in "my" folder using the AWS S3 CLI.
So, in this extension I can select and see the bucket itself, but I can't see anything within or browse to "my" folder. I've tried specifying the folder as part of the bucket name but when I do that I get no bucket to "select".
Just curious if I'm missing something here in my config or the extension's capabilities, or if this just isn't possible? Thanks.
Whenever I attempt to create a folder, it ends up creating a file instead.
Hello! Great work with this! Do you have plans to allow local S3 ops? Would be great for local development! For e.g., we use LocalStack for mocking S3 (and other AWS services) locally as we develop. I suspect a relatively low lift solution could be to expose --endpoint-url
as a configurable param?
Hello,
The extension is very useful and convenient to use. I would love to have the option to copy the S3 URI of directories and files similarly to the options in the web API for S3.
Thanks!
I'm trying to use your aws-s3 extension where I need to specify the --endpoint-url in all aws CLI calls. I'm using aws cli v1 on the remote ssh server. Your help is appreciated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.