chetan / invalidate-cloudfront-action

Invalidate AWS CloudFront distribution paths
MIT License
160 stars 36 forks source link

PATHS to all files #17

Closed jakcst closed 1 year ago

jakcst commented 1 year ago

I'm trying to create an invalidation to refresh all files in an s3 bucket. I can't seem to figure out why I am getting this message:

*** Reading PATHS from /*
PATHS file not found. nothing to do. exiting

uses: chetan/invalidate-cloudfront-action@v2

chetan commented 1 year ago

@jakcst looks like I have a typo in the error message. It should say PATHS_FROM file not found. nothing to do. exiting. If you are trying to pass a wildcard, you are using the wrong env var config. You should be setting PATHS=/* instead.

chetan commented 1 year ago

Yes, the 'PATHS_FROM' variable is meant to point to a file which contains a list of files to invalidate. Change that to 'PATHS' and it should work!

On Fri, Dec 23, 2022 at 12:14 PM jakcst @.***> wrote:

Thank you for the quick response! Here is the snippet from my yaml file. Maybe I am doing something incorrectly?

  • name: Create a CloudFront invalidation uses: @.** env: PATHS_FROM: '/' AWS_REGION: 'us-east-1' DISTRIBUTION: ${{ secrets.CLOUDFRONT_DISTRIBUTION }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

— Reply to this email directly, view it on GitHub https://github.com/chetan/invalidate-cloudfront-action/issues/17#issuecomment-1364125504, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAGJMJT346C7KWV4WPNBOLWOXMX5ANCNFSM6AAAAAATH3FKTU . You are receiving this because you commented.Message ID: @.***>

jakcst commented 1 year ago

Got it. Many thanks!