I want to retrieve AWS SSM parameters in my R code, but R doesn't have an AWS SDK (to my knowledge). So I decided to use the AWS REST API, which is simple to use except for needing bespoke signatures calculated for all requests. Happily the package aws.signature generates these - but I couldn't find examples for how to use it.
My code successfully generated a signature with the package, but then gave me this:
InvalidSignatureException
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.
Most of the examples online for the REST API refer to AWS S3, which also didn't help with debugging as those have a slightly different structure!
So my question is: how to debug this error?