AWS Greengrass
API Reference

FunctionExecutionConfig

{ "IsolationMode": "GreengrassContainer|NoContainer", "RunAs": { "Uid": 0, "Gid": 0 } }
FunctionExecutionConfig

Configuration information that specifies how the Lambda function runs.

type: object

IsolationMode

Specifies whether the Lambda function runs in a Greengrass container (default) or without containerization. Unless your scenario requires that you run without containerization, we recommend that you run in a Greengrass container. Omit this value to run the Lambda function with the default containerization for the group.

type: string

enum: ["GreengrassContainer", "NoContainer"]

RunAs

Specifies the user and/or group whose permissions are used when running the Lambda function. You can specify one or both values to override the default values (ggc_user/ggc_group). We recommend that you avoid running as root unless absolutely necessary to minimize the risk of unintended changes or malicious attacks. To run as root, you must set IsolationMode to NoContainer and you must update config.json in greengrass-root/config to set allowFunctionsToRunAsRoot to yes.

type: object

Uid

The User ID whose permissions are used to run a Lambda function.

type: integer

Gid

The Group ID whose permissions are used to run a Lambda function.

type: integer