https://github.com/koki-develop/cloudfront-invalidate-action
Create an invalidation for a CloudFront distribution.
https://github.com/koki-develop/cloudfront-invalidate-action
Last synced: 10 months ago
JSON representation
Create an invalidation for a CloudFront distribution.
- Host: GitHub
- URL: https://github.com/koki-develop/cloudfront-invalidate-action
- Owner: koki-develop
- License: mit
- Created: 2024-08-14T20:14:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-14T22:01:20.000Z (over 1 year ago)
- Last Synced: 2025-04-15T08:58:33.641Z (10 months ago)
- Language: TypeScript
- Homepage: https://github.com/marketplace/actions/cloudfront-invalidate-action
- Size: 1.24 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cloudfront-invalidate-action
[](https://github.com/koki-develop/cloudfront-invalidate-action/releases/latest)
[](https://github.com/koki-develop/cloudfront-invalidate-action/actions/workflows/ci.yml)
[](https://github.com/koki-develop/cloudfront-invalidate-action/actions/workflows/build.yml)
Create an invalidation for a CloudFront distribution.
## Usage
Specify a CloudFront distribution ID or alternative domain name to invalidate the cache.
```yaml
# Specify a CloudFront distribution ID
- uses: koki-develop/cloudfront-invalidate-action@v1
with:
id: E1234567890
# Specify an alternative domain name
- uses: koki-develop/cloudfront-invalidate-action@v1
with:
cname: www.example.com
```
### Inputs
| Name | Description |
| --- | --- |
| `id` | The ID of the distribution. |
| `cname` | Alternative domain name (CNAME) associated with the CloudFront distribution. |
| `paths` | The paths to be invalidated. You can specify multiple paths by separating them with a newline.
The default is `/*`. |
| `caller-reference` | A value that you specify to uniquely identify an invalidation request. |
| `wait` | Wait for the Invalidation to complete.
The default is `true`. |
### Outputs
| Name | Description |
| --- | --- |
| `invalidation-id` | The ID of the created invalidation. |
## LICENSE
[MIT](./LICENSE)