Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. * Getting the configuration dump in the format for re-import.
  2. * `aws cloudfront get-distribution-config --id E158A2GQ60271K | jq .DistributionConfig > config.json`
  3. * Get the ETAG for the distribution `aws cloudfront get-distribution-config --id E158A2GQ60271K | jq .ETag`.
  4. * Modify the distribution to remove CacheBehavior from config.json.
  5. * Apply the new configurationw with:
  6. * `aws cloudfront update-distribution --id E158A2GQ60271K --distribution-config file://config.json --if-match ETAG_IN_PREVIOUS_STEP`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement