
Chapter-6
Elastic Compute Cloud (EC2)
Hands on lab-Using Ec2 Roles and Instance Profiles
I have assigned the permission for the user CaptainKirk as suggested but in the next step i am facing the error-
AWS CLI Configuration
Assign the permissions for user CaptainKirk (be sure to replace <ACCESS KEY – CAPTAIN KIRK> and <SECRET ACCESS KEY – CAPTAIN KIRK> with the values provided in the labreferences.txt file):
aws configure
AWS Access Key ID [None]: xxxxxx
AWS Secret Access Key [None]: xxxxxxx
Default region name [None]: us-east-1
Default output format [None]: json
Test the Configuration
Determine the identity currently used in the order:
[cloud_user@ip-xxxxx ~]$ aws sts get-caller-identity
An error occurred (SignatureDoesNotMatch) when calling the GetCallerIdentity operation: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signin
g method. Consult the service documentation for details.
[cloud_user@ip-xxxxx ~]$
please let me know how to fix this error.