PHP: AWS Signature 4 - How to use IAM based API

Thor

Honorary Master
Joined
Jun 5, 2014
Messages
44,427
Reaction score
7,530
Location
Bellville
So banging my head a bit here I am trying to use an API that requires signature4 so from my understanding I need to
hash_hmac parameters and headers and access keys and then build up the headers.

I tried the AWS SDK and it's a disaster of bloat, any tips or places you can send me, perhaps someone has a lightweight library they built?
 
In need of a lifeline here... :confused:

I cannot imagine it being this complicated to call an AWS API so I am obviously missing something.
 
Try a read through these python examples, it may give you another outlook on the process and where you may have gone wrong..

I assume you are getting invalid signature errors when you make your request..?

More a case of I cannot find a way to build this request it seems like a metric ton of work to build a simple token for AWS, I mean what happened to the days where we used a username and password and got back a token.
 
AWS sigv4 is probably one of the top 3 most difficult to wrap your head around, but once you get there it is a piece of cake..

Must you absolutely use sigv4..?
 
Just use the SDK. It is simple and does all the cruft for you, and is why it partially exists
 
Top
Sign up to the MyBroadband newsletter
X