skip to Main Content

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?

2

Answers


  1. Chosen as BEST ANSWER

    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

  2. This is how I did it the same way as @Visco suggested. Here is a screenshot of my Task Group to understand it better.

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search