Open nando2301 opened 2 months ago
Making some changes to the package_args
configuration, I able to resolve external stack values but the error is the same. I only add !sub
to resolve the values.
package_args: !sub
- "--signing-profiles {function_profile}={lambda_name}"
- function_profile: !stack_output_external {{var.PROJECT_PREFIX_NAME}}-SFC::FunctionCodeSigningProfileName
lambda_name: {{var.ClientPrefixUpper}}-LMBD-FAILOVER-DB-{{var.AppPrefixUpper}}-{{var.environment}}
Error:
[2024-04-17 13:43:20] - infra/PI_IaC/oregon/29-lambda09-ordering/AMX-PLA-LMBD-09-sam - Creating Stack
"'--signing-profiles FunctionCodeSigningProfile_9JEbVbBjhBio=AMX-LMBD-FAILOVER-DB-PI-DE' is not of type 'object'\n\nFailed validating 'type' in schema['properties']['package_args']:\n {'type': 'object'}\n\nOn instance['package_args']:\n ('--signing-profiles '\n 'FunctionCodeSigningProfile_9JEbVbBjhBio=AMX-LMBD-FAILOVER-DB-PI-DE')"
Subject of the issue
When I try to add
package_args
like thissam package --signing-profiles HelloWorld=MySigningProfile...
it generateas a type error, please help me to found my issue. I don't know how to add this parameters and I have 9 lambdas to run with sam cli. Thanks in advanced.Your environment
Steps to reproduce
Parameters file:
Template used
Command:
Expected behaviour
I need to deploy a signed lambda to AWS
Actual behaviour
SAM Template sends this error: