Today I learnt ...
2023-12-20T11:38:34+00:00
Use existing
aws-cli
to quickly put a file in the cloud and allow it to be downloaded without auth
- AWS CLI command reference :
cp
- Granting read-only permission to an anonymous user with a bucket policy
- install
aws-cli
- have access credentials at the default profile
-
Get name of S3 bucket
-
Read into a bash variable
-
Use
aws-cli cp
to uploadaws s3 cp test.txt s3://howapped-storage-bucket-howappedstoragebucket-5rdjdikttg7h/test.txt