timkay / aws

Easy command line access to Amazon EC2, S3, SQS, ELB, and SDB
http://timkay.com/aws/
424 stars 123 forks source link

Fix Scope Errors when using CloudFormation with AWS4 #111

Closed gchinis closed 8 years ago

gchinis commented 8 years ago

This fixes a bug that occurs when using CloudFormation with AWS4:

$ ./aws --region=eu-central-1 --AWS4 describestacks
+--------+-----------------------+--------------------------------------------------------------------------------------------------------+
|  Type  |         Code          |                                                Message                                                 |
+--------+-----------------------+--------------------------------------------------------------------------------------------------------+
| Sender | SignatureDoesNotMatch | Credential should be scoped to correct service: 'cloudformation'. 4c65fc78-37b1-11e6-90f4-ef1004b02a69 |
+--------+-----------------------+--------------------------------------------------------------------------------------------------------+