forked from vladcosorg/action-s3-cloudfront-smart-deploy
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
34 lines (33 loc) · 1.15 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".
name: S3 & Cloudfront Smart Invalidation - save money and avoid unnecessary cache invalidation.
description: Analyze the changed files to S3 and minimize the number of Cloudfront invalidations and maximize cache hits
runs:
using: node16
main: dist/index.mjs
branding:
color: blue
icon: refresh-cw
inputs:
source:
description: No description
required: true
target:
description: Target s3 bucket to sync to
required: true
s3args:
description: Additional arguments from https://docs.aws.amazon.com/cli/latest/reference/s3/sync.html
required: false
cfargs:
description: Additional arguments from https://docs.aws.amazon.com/cli/latest/reference/cloudfront/create-invalidation.html
required: false
distribution:
description: Cloudfront distribution ID
required: false
invalidation-strategy:
description: " Available values: `BALANCED`, `PRECISE`, `FRUGAL`"
required: false
default: balanced
balanced-limit:
description: Maximum amount of invalidation requests when using `BALANCED` strategy
required: false
default: 5