aws-sam-cli: sam deploy does not refresh
SAM deploy does not show if Cloudformation completes
Description:
sam deploy --guided
gets stuck. It does not refresh.
{
"version": "1.82.0",
"system": {
"python": "3.9.16",
"os": "Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.23"
},
"additional_dependencies": {
"docker_engine": "20.10.23",
"aws_cdk": "Not available",
"terraform": "1.1.6"
}
}
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 2
- Comments: 34 (18 by maintainers)
Draft PR in the works: https://github.com/aws/aws-sam-cli/pull/5852
Thanks @simoroma, I will try to see if my change will not impact other usages, and commit to SAM CLI.
@moelasmar Good catch! Now the SAM terminates! Don’t worry about the roll backs. I haven’t set up roles properly. I had this issue also when Cloud Formation stacks completed correctly. output.txt
No
thanks @simoroma for checking it. It seems the code is some how stucking in this loop https://github.com/aws/aws-sam-cli/blob/8091b8a6d382ae66df1ff79e0ad24429e7ce5061/samcli/lib/deploy/deployer.py#L395-L408
I added more logs to know why the code is stucking in this loop, please use the artifacts created here and rerun the deploy command again and share the logs with us.
could you also set the environment variable
SAM_CLI_POLL_DELAY
to 0.5 or 1, as I think that there are some missed events, as the first even I can see isROLLBACK_IN_PROGRESS
and I should see some create events before it.Same issue here
Hello @simoroma, Could you please use the artifacts created here to install SAM CLI version with some debugging logs, and try your use case using the
--debug
flag, and share the logs with us to investigate more.Hello @simoroma, as we are not able to reproduce this issue, is it possible to have a call to try to do some investigations in your setup to get more information about the root cause of this problem?
Ok, thanks @simoroma for raising this issue. We will try to investigate this issue and update you.