https://github.com/artemnikitin/cci
CDN Cache Invalidation
https://github.com/artemnikitin/cci
aws cdn cdn-cache-invalidation cli cli-app cli-application cli-client cloudflare cloudfront go
Last synced: 12 months ago
JSON representation
CDN Cache Invalidation
- Host: GitHub
- URL: https://github.com/artemnikitin/cci
- Owner: artemnikitin
- License: mit
- Created: 2016-10-16T16:06:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:43:40.000Z (about 2 years ago)
- Last Synced: 2025-01-08T01:26:56.771Z (about 1 year ago)
- Topics: aws, cdn, cdn-cache-invalidation, cli, cli-app, cli-application, cli-client, cloudflare, cloudfront, go
- Language: Go
- Size: 760 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CDN Cache Invalidation Tool
[](https://goreportcard.com/report/github.com/artemnikitin/cci) [](https://codebeat.co/projects/github-com-artemnikitin-cci) [](https://travis-ci.org/artemnikitin/cci)
#### Description
Tool for invalidating cache for several CDN providers.
Currently supports:
```
Cloudfront (AWS)
Cloudflare
```
#### Get it
```
go get -u github.com/artemnikitin/cci
```
#### Use it
```
cci -config /path/to/config
cci -config https://example.com/config.json
```
Parameters:
- ``config`` specified path to config on hard drive or URL
- ``debug`` print additional info for debug, **optional**
#### Config
Should be present as JSON file.
```json
{
"cloudfront" : [{
"access_key": "AWS access key",
"secret_key": "AWS secret key",
"distribution_id": "Cloudfront distribution ID",
"resources": [
"List of files for invalidation, optional",
"Format: /index.html or /folder/*"
]
},
{
"access_key": "AWS access key",
"secret_key": "AWS secret key",
"distribution_id": "Cloudfront distribution ID"
}],
"cloudflare" : [{
"email": "Cloudflare email",
"key": "Cloudflare API key",
"zone_id": "Cloudflare Zone ID",
"purge_all": true
},
{
"email": "Cloudflare email",
"key": "Cloudflare API key",
"zone_id": "Cloudflare Zone ID",
"resources": [
"List of files for invalidation, optional",
"Format: http://example.com/index.html"
]
}]
}
```