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/6aa40aba3c3e0c197a5df42c8c083e86 to your computer and use it in GitHub Desktop.
Save misterjunio/6aa40aba3c3e0c197a5df42c8c083e86 to your computer and use it in GitHub Desktop.
AWS CFN - GG core definition example
CoreThing:
Type: AWS::IoT::Thing
Properties:
ThingName: !Sub "${pEnvName}-core${pCoreId}"
CoreDefinition:
Type: AWS::Greengrass::CoreDefinition
Properties:
Name: !Sub "${pEnvName}-core${pCoreId}"
CoreDefinitionVersion:
Type: "AWS::Greengrass::CoreDefinitionVersion"
Properties:
CoreDefinitionId: !Ref CoreDefinition
Cores:
- Id: !Sub "${pEnvName}-core${pCoreId}-id"
CertificateArn: !Ref pCertArn
ThingArn: !Join
- ":"
- - "arn:aws:iot"
- !Ref "AWS::Region"
- !Ref "AWS::AccountId"
- !Sub "thing/${CoreThing}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment