Is there a way to create presigned URL for objects in S3 bucket using AWS CLI?
I know that could be done using SDK, but is it possible with CLI?
I found this on
@Michael and @Shabbir,
Yes, aws s3 presign does not accept globbing/wildcards/, --include, --exclude, or --recursive'.
awslsdoes not accept-1; it behaves asls -lporls -lph`.
a loop works:
for file in $(aws s3 ls s3://mybucket --profile myprofile \
--endpoint-url | awk '{print $NF}'); do
aws s3 presign --expires-in 300 "s3://mybucket/$file" |
--profile my-profile --endpoint-url
done