!Ref
to local path not supported for AWS::Serverless::LayerVersion
#4767
Labels
area/intrinsics
Ref, If, Sub, GetAtt, ...
Description:
See aws/serverless-application-model#2533 (comment) and linked issues for context.
Given the following template where
CodePath
is a local path:Deployment fails:
Steps to reproduce:
Replace
template.yaml
with:Deploy:
Observed result:
The template passed to the SAM transform is the following (i.e. doesn't include the packaged assets):
However, with
CodeUri
inAWS::Serverless::Function
, the following template is deployable and the assets are packaged as expected:Expected result:
Expected
!Ref
to work with local paths, similar toCodeUri
.Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
:SAM CLI, version 1.72.0
us-west-2
Add --debug flag to command you are running
The text was updated successfully, but these errors were encountered: