forked from fruffin/serverless-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.yml
73 lines (68 loc) · 4.29 KB
/
sample.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
functions:
my_dotnet_lambda_1:
handler: $dotnetpacking.assemblyname::$dotnetpacking.namespace.$dotnetpacking.entrypointclass::FunctionHandlerAsync
my_dotnet_lambda_2:
handler: $dotnetpacking.assemblyname::$dotnetpacking.namespace.$dotnetpacking.entrypointclass::FunctionHandlerAsync
custom:
dotnetpacking:
# [Optional] If nothing is passed it will use 'Release' internally
configuration: ${opt:dotnet-configuration, 'Release'}
# [Optional] It will consider serverless path if null (serverless.yml folder)
# It overrides relative path (slnrelativepath)
slnabsolutepath: ${opt:dotnet-sln-absolute-path, ''}
# [Optional] It will consider serverless path if null (serverless.yml folder)
slnrelativepath: ${opt:dotnet-sln-relative-path, '..'}
# At least one of the next properties 3 is required
# It will search for the first .csproj inside of this path.
# Must be a relative path to solution folder.
# It overrides the project filter (projectfilter)
# It will be filled by the plugin if the value is null
projectpath: ${opt:dotnet-project-path, ''}
# It will search for the first .csproj with this name under the solution path
# The extension .csproj is optional
# It overrides the project filter (projectfilter)
# It will be filled by the plugin if the value is null
projectfile: ${opt:dotnet-project-file, ''}
# It will search for the first .csproj with this word inside of the .csproj content
projectfilter: ${opt:dotnet-project-filter, 'AWSProjectType'}
# [Optional] It will be filled by the plugin if empty
# Currently getting this information from targetframework property in the .csproj file
# It should be used manually $dotnetpacking.projectruntime. It just works over function runtime scope
projectruntime: ${opt:dotnet-project-runtime, ''}
# [Optional] It will be filled by the plugin if empty
# Currently using the projectfile without the .csproj extension
# It should be used manually $dotnetpacking.assemblyname. It just works over function handler scope
assemblyname: ${opt:dotnet-assembly-name, ''}
# [Optional] It will be filled by the plugin if empty
# Currently using the namespace extracted from entrypoint class file
# It should be used manually $dotnetpacking.namespace. It just works over function handler scope
namespace: ${opt:dotnet-namespace, ''}
# [Optional] It will be filled by the plugin if empty
# Currently using the class name of the first .cs file that has a reference for 'Amazon.Lambda.AspNetCoreServer'
# It should be used manually $dotnetpacking.entrypointclass. It just works over function handler scope
entrypointclass: ${opt:dotnet-entrypoint-class, ''}
# [Optional] The absolute, or relative path, to be used as the output for the package.
# Must include the package name with the zip extension.
outputpackage: ${opt:dotnet-outputpackage, ''}
# [Optional] It will skip the steps of clean and packing ('dotnet restore & dotnet lambda package') if true.
# If nothing is passed, it will consider 'false' internally.
skippacking: ${opt:dotnet-outputpackage, ''}
# [Optional] It will use the project filter porperty to match the lambda name with the property value.
# For example, <AWSProjectType>dotnet</AWSProjectType> will consider that the lambda resource name is dotnet.
uselambdanamefromproject: ${opt:dotnet-uselambdanamefromproject, ''}
# [Optional] It will pass this string as additional parameters on `dotnet lambda package` command.
additionalpackagecommand: ${opt:dotnet-additionalpackagecommand, ''}
# [Optional] It will change the amount of last 'n' lines to print on stdout commands.
stdoutlimit: ${opt:dotnet-stdoutlimit, '200'}
# [Optional] It will change the max buffer size for the internal process.
maxoutputbuffersize: ${opt:dotnet-maxoutputbuffersize, '10240'}
# Example for specific setup per lambda:
# In this case 'my_dotnet_lambda_1' will use 'EntryPoint' as the entrypointclass
# While 'my_dotnet_lambda_1'will use 'Program' as the entrypointclass
custom:
dotnetpacking:
uselambdanamefromproject: true
projectfilter: ${opt:dotnet-project-filter, 'AWSLambdaFunction'}
entrypointclass: ${opt:dotnet-entrypoint-class, 'EntryPoint'}
my_dotnet_lambda_2:
entrypointclass: 'Program'