Created
July 13, 2022 01:40
-
-
Save kamataryo/0d511d2b94efb6aa73b443ffed526fbe to your computer and use it in GitHub Desktop.
One liner to get S3 presigned URL and shoeten
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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