The package definition creates a compressed zip package from a local path. The zip package is then uploaded to the deployment S3 bucket during the LambdaSharp CLI publish step. All items in the zip package are given read-write permissions, unless the item has a Linux executable with an ELF header, in which case the item is given read-and-execute permission (see GifMaker Sample).
Package: String Description: String Scope: ScopeDefinition Build: String Files: String
Buildattribute specifies a command to execute from the same directory as the module definition.
Descriptionattribute specifies the package description.
Filesattribute specifies a path to a local folder. The path can optionally have a wildcard suffix (e.g.
*.json). If the wildcard suffix is omitted, all files and sub-folders are included, recursively. Otherwise, only the top folder and files matching the wildcard are included.
Packageattribute specifies the item name. The name must start with a letter and followed only by letters or digits. Punctuation marks are not allowed. All names are case-sensitive.
Scopeattribute specifies which functions need to have access to this item. The
Scopeattribute can be a comma-separated list or a YAML list of function names. If all functions need the item, then
allcan be used as a wildcard. In addition,
publiccan be used to export the item from the module. Alternatively,
stackcan be used to make the item available only in a nested stack.
Type: Comma-delimited String or List of String
When the logical ID of this item is provided to the
Ref intrinsic function,
Ref returns the S3 key of the published zip package.
Create package of local files
- Package: MyPackage Files: WebAssets/
Create package from a published Blazor WebAssembly project
- Package: MyBlazorPackage Build: dotnet publish -c Release MyBlazorApp Files: MyBlazorApp/bin/Release/netstandard2.1/publish/wwwroot/