Skip to content

Commit 778c7a2

Browse files
committed
Updated: README.md
1 parent f96b93c commit 778c7a2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Run it on localhost to optimize and upload images to S3. Retrieved links of uplo
8080
## How to setup
8181
1) Download or git clone this repo
8282
2) Create .env file based on .env.example and place it in the root of the project
83-
- The region needs to be us-east-1 for Cloudfront to work (it is global, but according to AWS it has to be configured in us-east-1)
83+
- The region needs to be us-east-1 for Cloudfront to work (Cloudfront is a global service, but according to AWS it has to be configured in us-east-1)
8484
3) Run `npm run install` or `yarn install` or `pnpm install` (I use pnpm, but other package managers should work too)
8585
4) Run `npm run dev` or `yarn dev` or `pnpm dev` to start the server
8686
5) Open your browser and go to `http://localhost:3010`
@@ -96,4 +96,7 @@ Run it on localhost to optimize and upload images to S3. Retrieved links of uplo
9696
- Delete images in S3
9797

9898
## Notes
99-
1) Animations / GIFs are not supported
99+
- Animations / GIFs are not supported
100+
aws s3api delete-objects --bucket blazing-peon-images --delete "$(aws s3api list-object-versions --bucket blazing-peon-images --query='{Objects: Versions[].{Key:Key,VersionId:VersionId}}')" --output=json
101+
- Fun command to **delete all objects in a bucket permanently**, including versions - I suggest you don't use this a
102+
- `aws s3api delete-objects --bucket <replace-this-with-bucket-name> --delete "$(aws s3api list-object-versions --bucket <replace-this-with-bucket-name> --query='{Objects: Versions[].{Key:Key,VersionId:VersionId}}')" --output=json > /dev/null 2>&1`

0 commit comments

Comments
 (0)