Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Create auto CloudFront invalidations in AzureDevops?

I have created Automatic invalidations in GitHub and it is working fine:

  • run: aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_DISTRIBUTION_ID }} --paths "/fd/cm/latest/remoteEntry.js"

but not sure how to create the same task in AzureDevops. Any help would be greatly appreciated?

like image 725
Visco Love Avatar asked Jan 29 '26 17:01

Visco Love


1 Answers

found the solution

  • task: AWSCLI@1 inputs: awsCredentials: "$$$" regionName: us-east-2 awsCommand: cloudfront awsSubCommand: create-invalidation awsArguments: --distribution-id DistributionID --paths "/fd/cm/latest/remoteEntry.js" displayName: Cache Invalidation
like image 131
Visco Love Avatar answered Feb 01 '26 19:02

Visco Love