Open rhbecker opened 10 months ago
Thanks for raising this issue! I can reproduce the problem where sam delete
doesn't seem to be using the same cache as sam deploy
. We'll need to dig a little deeper into what delete does differently than deploy to find the root cause.
Description:
Every
sam delete
invocation requires entry of a new token. This does not occur withsam deploy
using the same profile.Maybe there's some small chance this issue shares a root cause with what's being addressed in PR #6551.
This issue seems similar to the resolved #1623, and perhaps the resolved #1682.
Steps to reproduce:
sam deploy
.sam deploy
just to see you're not asked for the code again.sam delete
; you're prompted for a code regardless of whether still within the expected session duration.Observed result:
The prompt for the code comes after answering the following question, which might indicate the location of the issue ...
Expected result:
The
sam delete
command should know how to locate the session cache and should respectduration_seconds
settings configured for the AWS CLI profile, just assam deploy
seems to.Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
The config for the profile I'm using ...
The output of
sam --info
...