File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ Run it on localhost to optimize and upload images to S3. Retrieved links of uplo
80
80
## How to setup
81
81
1 ) Download or git clone this repo
82
82
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)
84
84
3 ) Run ` npm run install ` or ` yarn install ` or ` pnpm install ` (I use pnpm, but other package managers should work too)
85
85
4 ) Run ` npm run dev ` or ` yarn dev ` or ` pnpm dev ` to start the server
86
86
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
96
96
- Delete images in S3
97
97
98
98
## 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 `
You can’t perform that action at this time.
0 commit comments