AWS Greengrass
API Reference

FunctionRunAsConfig

{ "Uid": 0, "Gid": 0 }
FunctionRunAsConfig

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