-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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: sam build - TypeError #6787
Comments
Hi @yan-olydis, thanks for reporting the issue. Could you share your template file? SAM CLI does not cover resolving all the intrinsic functions and from the traceback, this might be throwing an error because of that. |
this is my template Parameters: General parametersEnvType: DBInstanceClass: isEnableDeletionProtection: isEnableBackup: Conditions: Mappings: Resources: EcsCluster: LoadBalancing: DocumentDB: Encryption: |
Thanks for providing the template file. I tried running template.yaml
|
Closing due to inactivity. |
|
Description:
when i run my github action i have an error unhashable type: 'list'
my sam info
Run sam --info
{
"version": "1.110.0",
"system": {
"python": "3.11.3",
"os": "Linux-6.5.0-1015-azure-x86_64-with-glibc2.35"
},
"additional_dependencies": {
"docker_engine": "24.0.9",
"aws_cdk": "Not available",
"terraform": "1.7.4"
},
"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"
]
}
Steps to reproduce:
run sam build in my github action
name: Main Workflow
on:
push:
branches:
- main # Change this to the branch you want to trigger on
jobs:
deploy:
runs-on: ubuntu-latest
Observed result:
Starting Build inside a container
Error: unhashable type: 'list'
Traceback:
File "click/core.py", line 1078, in main
File "click/core.py", line 1688, in invoke
File "click/core.py", line 1434, in invoke
File "click/core.py", line 783, in invoke
File "samcli/cli/cli_config_file.py", line 347, in wrapper
File "click/decorators.py", line 92, in new_func
File "click/core.py", line 783, in invoke
File "samcli/lib/telemetry/metric.py", line 185, in wrapped
File "samcli/lib/telemetry/metric.py", line 150, in wrapped
File "samcli/lib/utils/version_checker.py", line 43, in wrapped
File "samcli/cli/main.py", line 95, in wrapper
File "samcli/commands/build/command.py", line 174, in cli
File "samcli/commands/build/command.py", line 239, in do_cli
File "samcli/commands/build/build_context.py", line 185, in enter
File "samcli/commands/build/build_context.py", line 191, in set_up
File "samcli/lib/providers/sam_stack_provider.py", line 281, in get_stacks
File "samcli/lib/providers/sam_stack_provider.py", line 270, in get_stacks
File "samcli/lib/providers/sam_stack_provider.py", line 62, in init
File "samcli/lib/providers/sam_base_provider.py", line 200, in get_template
File "samcli/lib/intrinsic_resolver/intrinsic_property_resolver.py", line 253, in resolve_template
File "samcli/lib/intrinsic_resolver/intrinsic_property_resolver.py", line 277, in resolve_attribute
An unexpected error was encountered while executing "sam build".
Search for an existing issue:
https://github.com/aws/aws-sam-cli/issues?q=is%3Aissue+is%3Aopen+Bug%3A%20sam%20build%20-%20TypeError
Or create a bug report:
https://github.com/aws/aws-sam-cli/issues/new?template=Bug_report.md&title=Bug%3A%20sam%20build%20-%20TypeError
Error: Process completed with exit code 1.
Expected result:
deploy my cloudformation template
The text was updated successfully, but these errors were encountered: