How to define AUTHPARAMS in Amazon EC2 API call

Posted by The Joker on Programmers See other posts from Programmers or by The Joker
Published on 2014-06-08T07:42:51Z Indexed on 2014/06/08 9:39 UTC
Read the original article Hit count: 514

Filed under:
|
|
|
|

I am trying to make an API call to EC2.

I want to add my IP address to the security group.

https://ec2.amazonaws.com/
?Action=AuthorizeSecurityGroupIngress
&GroupName=grppp20
&GroupId=sg-b2z982mq
&IpPermissions.1.IpProtocol=tcp
&IpPermissions.1.FromPort=3389
&IpPermissions.1.ToPort=3389
&IpPermissions.1.IpRanges.1.CidrIp=22.951.17.728/32
&&AWSAccessKeyId=AOPLDRACULALK6U7A

And i get the following error.

AWS was not able to validate the provided access credentials

I have a secret access key & a username.

I searched internet & found that we have to make a signature of the secret key & use it in the request instead of adding it directly. Can anyone tell me how to make a signature of my AWS secret key & how to use them with my API call?

Let my secret key be: 2WwRiQzBs7RTFG4545PIOJ7812CXZ Username: thejoker

© Programmers or respective owner

Related posts about api

Related posts about rest