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
sam build incorrectly using SSM parameter #1292
Comments
The issue seems to stem from this: https://github.com/awslabs/aws-sam-cli/blob/3370cbff3401f76a5aa23ef86f2d332e90386d7e/samcli/commands/local/lib/sam_function_provider.py#L260-L262 IMHO, the As a workaround, I was able to get it working by replacing
On that note, I did also notice the additional unexpected behaviour:
|
This is supported already. You We resolve parameters on build, so in order for the Ref to resolve you need to pass the value in through |
Doesn't this mean that default parameters can't be used? |
Default parameter can be used. In your example, the default is |
Right, but |
We don't do interpolation or reach out to the cloud to resolve. So the default is read and interpreted as the default value. The way forward is to override this behavior with the This is also a duplicate of #1069. Closing in favor of the other. |
I have the following template snippet:
Running this:
sam build -b build -s $(pwd)
Returns this error:
Error: /layers/orgfunctions is an Invalid Layer Arn.
If I run
sam package
, it seems to work correctly.The text was updated successfully, but these errors were encountered: