Skip to content

Instantly share code, notes, and snippets.

@virtualhobbit
Created July 13, 2020 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save virtualhobbit/d6908ceb6064159dc5dd6a03d8484976 to your computer and use it in GitHub Desktop.
Save virtualhobbit/d6908ceb6064159dc5dd6a03d8484976 to your computer and use it in GitHub Desktop.
// Format the auth date
attAmzAuthDate = attAmzDate.split("T")[0];
// Define string to sign
attStringToSign = 'AWS4-HMAC-SHA256\n' + attAmzDate + '\n' + attAmzAuthDate + '/' + attRegion + '/' + attService + '/aws4_request\n'+ attCanonicalRequestHash;
System.log("The string to sign is: " + '\n' + '\n' + attStringToSign + '\n');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment