AWS::Greengrass::FunctionDefinition Environment - AWS CloudFormation
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

This is the new 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 CloudFormation template, Environment is a property of the FunctionConfiguration property type.

Syntax

To declare this entity in your CloudFormation template, use the following syntax:

JSON

{ "AccessSysfs" : Boolean, "Execution" : Execution, "ResourceAccessPolicies" : [ ResourceAccessPolicy, ... ], "Variables" : Json }

Properties

AccessSysfs

Indicates whether the function is allowed to access the /sys directory 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