Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: TITLE #7838

Open
mohanbabubb opened this issue Jan 16, 2025 · 1 comment
Open

Bug: TITLE #7838

mohanbabubb opened this issue Jan 16, 2025 · 1 comment
Labels
blocked/more-info-needed More info is needed from the requester. If no response in 14 days, it will become stale.

Comments

@mohanbabubb
Copy link

Description:

DONT understand the problem and bug. too much non conteextual

Steps to reproduce:

sam deploy --guided

Observed result:

samlocal deploy --guided

Configuring SAM deploy

    Looking for config file [samconfig.toml] :  Found
    Reading default arguments  :  Success

    Setting default arguments for 'sam deploy'
    =========================================
    Stack Name [sam-app]: 
    AWS Region [ap-southeast-1]: us-east-1

Error: 'str' object has no attribute 'get'
Traceback:
File "/Users/mohanbabu/miniconda/envs/scp/lib/python3.11/site-packages/click/core.py", line 1082, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/Users/mohanbabu/miniconda/envs/scp/lib/python3.11/site-packages/click/core.py", line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mohanbabu/miniconda/envs/scp/lib/python3.11/site-packages/click/core.py", line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mohanbabu/miniconda/envs/scp/lib/python3.11/site-packages/click/core.py", line 788, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mohanbabu/miniconda/envs/scp/lib/python3.11/site-packages/samcli/cli/cli_config_file.py", line 347, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/mohanbabu/miniconda/envs/scp/lib/python3.11/site-packages/samcli/lib/cli_validation/image_repository_validation.py", line 111, in wrapped
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/mohanbabu/miniconda/envs/scp/lib/python3.11/site-packages/click/decorators.py", line 92, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mohanbabu/miniconda/envs/scp/lib/python3.11/site-packages/click/core.py", line 788, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mohanbabu/miniconda/envs/scp/lib/python3.11/site-packages/samcli/lib/telemetry/metric.py", line 185, in wrapped
raise exception # pylint: disable=raising-bad-type
^^^^^^^^^^^^^^^
File "/Users/mohanbabu/miniconda/envs/scp/lib/python3.11/site-packages/samcli/lib/telemetry/metric.py", line 150, in wrapped
return_value = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/mohanbabu/miniconda/envs/scp/lib/python3.11/site-packages/samcli/lib/utils/version_checker.py", line 43, in wrapped
actual_result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/mohanbabu/miniconda/envs/scp/lib/python3.11/site-packages/samcli/cli/main.py", line 95, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/mohanbabu/miniconda/envs/scp/lib/python3.11/site-packages/samcli/commands/_utils/cdk_support_decorators.py", line 40, in wrapped
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/mohanbabu/miniconda/envs/scp/lib/python3.11/site-packages/samcli/commands/_utils/command_exception_handler.py", line 89, in wrapper_command_exception_handler
raise ex
File "/Users/mohanbabu/miniconda/envs/scp/lib/python3.11/site-packages/samcli/commands/_utils/command_exception_handler.py", line 69, in wrapper_command_exception_handler
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/mohanbabu/miniconda/envs/scp/lib/python3.11/site-packages/samcli/commands/deploy/command.py", line 208, in cli
do_cli(
File "/Users/mohanbabu/miniconda/envs/scp/lib/python3.11/site-packages/samcli/commands/deploy/command.py", line 304, in do_cli
guided_context.run()
File "/Users/mohanbabu/miniconda/envs/scp/lib/python3.11/site-packages/samcli/commands/deploy/guided_context.py", line 576, in run
self.guided_prompts(_parameter_override_keys)
File "/Users/mohanbabu/miniconda/envs/scp/lib/python3.11/site-packages/samcli/commands/deploy/guided_context.py", line 137, in guided_prompts
input_parameter_overrides = self.prompt_parameters(
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mohanbabu/miniconda/envs/scp/lib/python3.11/site-packages/samcli/commands/deploy/guided_context.py", line 298, in prompt_parameters
no_echo = parameter_properties.get("NoEcho", False)
^^^^^^^^^^^^^^^^^^^^^^^^

Expected result:

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

  1. OS:
  2. sam --version: SAM CLI, version 1.132.0
  3. AWS region: localstack , ap-southeast-1
# Paste the output of `sam --info` here

{
  "version": "1.132.0",
  "system": {
    "python": "3.11.10",
    "os": "macOS-15.2-arm64-arm-64bit"
  },
  "additional_dependencies": {
    "docker_engine": "27.4.0",
    "aws_cdk": "Not available",
    "terraform": "1.10.3"
  },
  "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"
  ]
}

Add --debug flag to command you are running

@mohanbabubb mohanbabubb added the stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. label Jan 16, 2025
@mbfreder
Copy link

Hi, thank you for creating this issue. Could you please provide a sample samconfig file and template so we can reproduce the issue? thanks

@roger-zhangg roger-zhangg added blocked/more-info-needed More info is needed from the requester. If no response in 14 days, it will become stale. and removed stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. labels Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked/more-info-needed More info is needed from the requester. If no response in 14 days, it will become stale.
Projects
None yet
Development

No branches or pull requests

3 participants