Skip to content

Instantly share code, notes, and snippets.

@kamataryo
Created July 13, 2022 01:40
Show Gist options
  • Save kamataryo/0d511d2b94efb6aa73b443ffed526fbe to your computer and use it in GitHub Desktop.
Save kamataryo/0d511d2b94efb6aa73b443ffed526fbe to your computer and use it in GitHub Desktop.
One liner to get S3 presigned URL and shoeten
curl "https://is.gd/create.php?format=simple&url=$(aws s3 presign \
s3://<BUCKET_NAME>/<OBJECT_KEY> \
--region ap-northeast-1 \
--expires-in 60 | \
jq -Rr @uri \
)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment