mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
A possible fix for https://github.com/serverless/serverless/issues/3151 Switch from using IAM `getUser` to get the account ID of the current user to calling STS `getCallerIdentity`. It is expected that this is a less protected segment of rights and will, as a result, impact fewer users. Of course, this is hard to guarantee. Changes tests appropriately Related Docs: http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#getCallerIdentity-property