Good article! I didn't know about the axios interceptor to sign all http requests automatically. I think that's a great idea.
I recently wrote a post about signing GraphQL requests with AWS IAM and Signature V4. I did use the default fetch api instead of axios for http requests, but that's just preference. However, for SigV4 signing I would recommend to use the official @aws-sdk/signature-v4 package instead of aws4. Even though aws4 is working just fine, it looks like it's not maintained anymore and has some open issues.
Good article! I didn't know about the axios interceptor to sign all http requests automatically. I think that's a great idea.
I recently wrote a post about signing GraphQL requests with AWS IAM and Signature V4. I did use the default
fetch
api instead ofaxios
for http requests, but that's just preference. However, for SigV4 signing I would recommend to use the official@aws-sdk/signature-v4
package instead ofaws4
. Even thoughaws4
is working just fine, it looks like it's not maintained anymore and has some open issues.Thanks, great stuff, I'll have a look!