aws / aws-sam-cli

CLI tool to build, test, debug, and deploy Serverless applications using AWS SAM
https://aws.amazon.com/serverless/sam/
Apache License 2.0
6.53k stars 1.17k forks source link

sam deploy hang on Setting default arguments for 'sam deploy' #6281

Closed francobasilico closed 3 months ago

francobasilico commented 1 year ago

Description:

After building my lambda with sam build and trying to deploy using sam deploy --debug --guided it hangs right after showing Setting default arguments for 'sam deploy'

sam --version: SAM CLI, version 1.102.0

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS: windows 10
  2. sam --version: 1.102.0
  3. AWS region: eu-west-2

sam --info:

{
  "version": "1.102.0",
  "system": {
    "python": "3.11.4",
    "os": "Windows-10-10.0.22621-SP0"
  },
  "additional_dependencies": {
    "docker_engine": "20.10.14",
    "aws_cdk": "Not available",
    "terraform": "1.4.5"
  },
  "available_beta_feature_env_vars": [
    "SAM_CLI_BETA_FEATURES",
    "SAM_CLI_BETA_BUILD_PERFORMANCE",
    "SAM_CLI_BETA_TERRAFORM_SUPPORT",
    "SAM_CLI_BETA_RUST_CARGO_LAMBDA"
  ]
}

DEBUG

2023-11-16 15:09:55,077 | Config file location: C:\Users\Franco\Documents\Development\test\apps\app\samconfig.toml
2023-11-16 15:09:55,078 | Loading configuration values from [default.['deploy'].parameters] (env.command_name.section) in config file at 'C:\Users\Franco\Documents\Development\test\apps\app\samconfig.toml'...
2023-11-16 15:09:55,078 | Configuration values successfully loaded.
2023-11-16 15:09:55,078 | Configuration values are: {'stack_name': 'scraper', 'capabilities': 'CAPABILITY_IAM', 'confirm_changeset': True, 'resolve_s3': True}
2023-11-16 15:09:55,081 | Using SAM Template at C:\Users\Franco\Documents\Development\test\apps\app\.aws-sam\build\template.yaml
2023-11-16 15:09:55,102 | Using config file: samconfig.toml, config environment: default
2023-11-16 15:09:55,102 | Expand command line arguments to:
2023-11-16 15:09:55,102 | --guided --template_file=C:\Users\Franco\Documents\Development\test\apps\app\.aws-sam\build\template.yaml --fail_on_empty_changeset --confirm_changeset --on_failure=ROLLBACK --stack_name=scraper --resolve_s3 --capabilities=['CAPABILITY_IAM']
2023-11-16 15:09:55,330 | Sam customer defined id is more priority than other IDs. Customer defined id for resource HelloWorldFunction is HelloWorldFunction
hnnasit commented 1 year ago

Hi @francobasilico, thanks for reporting the issue. I could not reproduce this behavior. Does this also happen when sam deploy is run without --guided option?

mildaniel commented 3 months ago

Closing due to inactivity. If the issue persists, please open a new issue.

github-actions[bot] commented 3 months ago

⚠️COMMENT VISIBILITY WARNING⚠️

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.