sam build is unable to create lambda layer for .net core: Error: 'dotnetcore3.1' runtime is not supported for layers
Open
maintainer/need-response
type/feature
- Dominant language
- Python
- Stars
- 6.7k
- Forks
- 1.2k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 52
Description
sam build is not able to create a lambda layer with dotnetcore3.1 runtime. The following error is reported:
`Error: 'dotnetcore3.1' runtime is not supported for layers`
The resource in the template.yaml looks like this:
TestLambdaLayer:
Type: AWS::Lambda::LayerVersion
Metadata:
BuildMethod: dotnetcore3.1
Properties:
LayerName: TestLambdaLayer
Description: TestLambdaLayer
ContentUri: ../packages
CompatibleRuntimes:
- dotnetcore3.1
RetentionPolicy: Retain
Expected behaviour: Lambda layer for .net core 3.1 should be created using SAM since it is a supported runtime
Contributor guide
Assessment
This issue has not been assessed yet.