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 Files: String
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 function need the item, then
allcan be used as a wildcard. In addition, the
publiccan be used to export the item from the module.
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/