Implentation of calculating a signature for signing AWS API requests. Specifically, this script invalidates all files (/*
) in a Cloudfront distribution via a signed API request.
To run it, edit the .sh file by settting AWS_ACCESS_KEY
, AWS_SECRET_KEY
, and DISTRIBUTION_ID
with your values, and source the file in a shell:
source signedAWSRequest.sh