Bug: sam remote invoke failing with valid credentials #5820
Labels
area/remote/invoke
sam remote invoke command
stage/waiting-for-release
Fix has been merged to develop and is waiting for a release
type/bug
Description:
I am running the following commands:
and am getting this response:
Invoking Lambda Function arn:aws:lambda:us-east-1:ACCOUNT_ID:function:NAME Error: An error occurred (UnrecognizedClientException) when calling the Invoke operation: The security token included in the request is invalid.
When invoking the same function with the AWS CLI, and the same SSO profile
--profile Administrator-ACCOUNT_ID
the invocation succeeds.I have deployed the Lambda using the CDK. I am using SAM for local testing.
Steps to reproduce:
On my environment the following steps are failing:
aws configure sso
Observed result:
Invoking Lambda Function arn:aws:lambda:us-east-1:ACCOUNT_ID:function:NAME Error: An error occurred (UnrecognizedClientException) when calling the Invoke operation: The security token included in the request is invalid.
Expected result:
I expect the lambda invocation logs.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
And here the log output
The text was updated successfully, but these errors were encountered: