https://github.com/stamen/s3-tile-purger
Purges map tiles from S3 buckets
https://github.com/stamen/s3-tile-purger
Last synced: about 2 months ago
JSON representation
Purges map tiles from S3 buckets
- Host: GitHub
- URL: https://github.com/stamen/s3-tile-purger
- Owner: stamen
- License: mit
- Created: 2013-10-25T23:25:46.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-22T22:17:24.000Z (over 11 years ago)
- Last Synced: 2025-02-19T14:42:37.558Z (2 months ago)
- Language: JavaScript
- Size: 156 KB
- Stars: 3
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# s3-tile-purger
Given appropriate credentials, I purge S3 buckets containing map tiles
according to various criteria.## Tile Purging
To remove PNG tiles at z15+:
```bash
foreman run -- node purge.js -z 15 -e png
```To remove UTFGrids from a `labels` layer:
```bash
foreman run -- node purge.js -s labels -e json
```To remove tiles older than 30 days:
```bash
foreman run -- node purge.js -a 2592000
```## Environment Variables
* `AWS_ACCESS_KEY_ID` - AWS access key id.
* `AWS_SECRET_ACCESS_KEY` - AWS secret access key.
* `S3_BUCKET` - S3 bucket to use.