Skip to content

Instantly share code, notes, and snippets.

@misterjunio
Last active January 20, 2020 06:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save misterjunio/b94e40f1059a5e206076362df809e33c to your computer and use it in GitHub Desktop.
Save misterjunio/b94e40f1059a5e206076362df809e33c to your computer and use it in GitHub Desktop.
AWS CFN - GG function definition example
FunctionDefinition:
Type: "AWS::Greengrass::FunctionDefinition"
Properties:
Name: !Sub "${pEnvName}-core${pCoreId}-FunctionDefinition"
FunctionDefinitionVersion:
Type: "AWS::Greengrass::FunctionDefinitionVersion"
Properties:
FunctionDefinitionId: !GetAtt FunctionDefinition.Id
Functions:
# Function to set group as automatically detect core connectivity
- Id: !Sub "${pEnvName}-core${pCoreId}-AutoDetectionFunction"
FunctionArn: "arn:aws:lambda:::function:GGIPDetector:1"
FunctionConfiguration:
MemorySize: "32768"
Timeout: "3"
Pinned: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment