This is the new AWS CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::Greengrass::FunctionDefinition Environment
The environment configuration for a Lambda function on the AWS IoT Greengrass core.
In an AWS CloudFormation template, Environment is a property of the FunctionConfiguration property type.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "AccessSysfs" :Boolean, "Execution" :Execution, "ResourceAccessPolicies" :[ ResourceAccessPolicy, ... ], "Variables" :Json}
YAML
AccessSysfs:BooleanExecution:ExecutionResourceAccessPolicies:- ResourceAccessPolicyVariables:Json
Properties
AccessSysfs-
Indicates whether the function is allowed to access the
/sysdirectory on the core device, which allows the read device information from/sys.Note
This property applies only to Lambda functions that run in a Greengrass container.
Required: No
Type: Boolean
Update requires: Replacement
Execution-
Settings for the Lambda execution environment in AWS IoT Greengrass.
Required: No
Type: Execution
Update requires: Replacement
ResourceAccessPolicies-
A list of the resources in the group that the function can access, with the corresponding read-only or read-write permissions. The maximum is 10 resources.
Note
This property applies only for Lambda functions that run in a Greengrass container.
Required: No
Type: Array of ResourceAccessPolicy
Update requires: Replacement
Variables-
Environment variables for the Lambda function.
Required: No
Type: Json
Update requires: Replacement
See also
-
FunctionConfigurationEnvironment in the AWS IoT Greengrass Version 1 API Reference