/cloudfront-invalidate-action

Create an invalidation for a CloudFront distribution.

Primary LanguageTypeScriptMIT LicenseMIT

cloudfront-invalidate-action

GitHub Release CI Build

Create an invalidation for a CloudFront distribution.

Usage

Specify a CloudFront distribution ID or alternative domain name to invalidate the cache.

# 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