aws / aws-toolkit-vscode

Amazon Q, CodeCatalyst, Local Lambda debug, SAM/CFN syntax, ECS Terminal, AWS resources
https://marketplace.visualstudio.com/items?itemName=AmazonWebServices.amazon-q-vscode
Apache License 2.0
1.48k stars 413 forks source link

s3: copy full s3:// path in AWS Explorer #2953

Open b-y-f opened 1 year ago

b-y-f commented 1 year ago

Problem

I want to copy full path instead of folder/filename but now I got folder/ when I click copy Path

Expected behavior

s3://bucket/folder

justinmk3 commented 1 year ago

The Copy ARN action gives the full ARN. Are you using a tool that accepts s3:// paths but not ARNs?

One problem I noticed with AWS CLI: aws s3 command does not accept ARNs: https://docs.aws.amazon.com/cli/latest/reference/s3/

That is a quirk of AWS CLI and/or S3 ARNs. For reference, it works with Lambda:

aws lambda get-function --function-name 'arn:aws:lambda:us-west-2:111111111111:function:zzz'

Proposal

b-y-f commented 1 year ago

The Copy ARN action gives the full ARN. Are you using a tool that accepts s3:// paths but not ARNs?

We normally need something like s3://bucket/folder to be pasted in aws cli or boto3 or awswrangler to read the data. Then data process for Machine learning.