ERROR: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method.

If you are using the AWS route53 class and you stumbled upon the error below:

object(stdClass)[4]
  public 'error' => 
    array (size=3)
      'curl' => boolean false
      'Error' => 
        array (size=3)
          'Type' => string 'Sender' (length=6)
          'Code' => string 'SignatureDoesNotMatch' (length=21)
          'Message' => string 'The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.' (length=178)
      'RequestId' => string '078cbec9-10a2-11e7-a36b-7bfec70d5319' (length=36)
  public 'code' => int 403

Here’s what you can do, check that the credentials in your code is correct. Check both AWS Key and AWS Secret. Also ensure that forward slash at the end of the secret is present if and only if your AWS must have it.