Skip to content

Instantly share code, notes, and snippets.

@misterjunio
Last active January 21, 2020 00:45
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/de90e1a40ca21ded4606fb0c0f6f69c0 to your computer and use it in GitHub Desktop.
Save misterjunio/de90e1a40ca21ded4606fb0c0f6f69c0 to your computer and use it in GitHub Desktop.
AWS CFN - GG group ID output example
...
#Group aggregation
Group:
Type: AWS::Greengrass::Group
Properties:
Name: !Sub "${pEnvName}-core${pCoreId}-group"
RoleArn:
Fn::ImportValue: !Sub "${pEnvName}-greengrass-group-role"
GroupVersion:
Type: AWS::Greengrass::GroupVersion
Properties:
GroupId: !Ref Group
CoreDefinitionVersionArn: !Ref CoreDefinitionVersion
FunctionDefinitionVersionArn: !Ref FunctionDefinitionVersion
SubscriptionDefinitionVersionArn: !Ref SubscriptionDefinitionVersion
LoggerDefinitionVersionArn: !Ref LoggerDefinitionVersion
ResourceDefinitionVersionArn: !Ref ResourceDefinitionVersion
Outputs:
GroupId:
Description: "ID of the currently deployed group"
Value: !Ref Group
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment