Closed bradthurber closed 1 year ago
Looks like this may be caused by expires_at
token not being set further up the chain
As a workaround, I can go into Visual Studio Code with code .
and authenticate as my SSO user using the AWS Tools Explorer. Once I do that, I can go right back to the command prompt and run sam deploy --guided --profile sandbox --region us-east-1
and it just works. An hour or so later I have to do the workaround again.
Thanks for raising the issue. As you pointed out, it's probably a SDK/boto3 issue. But let us investigate further to understand if there's anything can be done on the SAM CLI side.
I think this may be working now but I'm hesitant to close it because people still seem to be having problems upstream in the AWS CLI.
I can no longer reproduce this issue. I'm assuming it was fixed somewhere so I will close it.
My current SAM info:
brad@brad13600:~$ sam --info
{
"version": "1.80.0",
"system": {
"python": "3.7.10",
"os": "Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-debian-bookworm-sid"
},
"additional_dependencies": {
"docker_engine": "20.10.24",
"aws_cdk": "Not available",
"terraform": "Not available"
}
}
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Description:
Running
aws sso login --profile sandbox
followed by
sam deploy --guided --profile sandbox
fails with
Error: The SSO session associated with this profile has expired or is otherwise invalid. To refresh this SSO session run aws sso login with the corresponding profile.
Steps to reproduce:
Observed result:
I get an error about the profile being expired even though the profile is valid
Expected result:
Expected the SAM app to be reployed
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
:SAM CLI, version 1.76.0$
aws --version
aws-cli/2.11.2 Python/3.11.2 Linux/5.15.90.1-microsoft-standard-WSL2 exe/x86_64.ubuntu.22 prompt/off{ "version": "1.76.0", "system": { "python": "3.7.10", "os": "Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-debian-bookworm-sid" }, "additional_dependencies": { "docker_engine": "20.10.23", "aws_cdk": "Not available", "terraform": "Not available" } }
Add --debug flag to command you are running