This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Parameters: | |
pCoreId: | |
Type: String | |
pEnvName: | |
Type: String |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
#Group aggregation | |
Group: | |
Type: AWS::Greengrass::Group | |
Properties: | |
Name: !Sub "${pEnvName}-core${pCoreId}-group" | |
RoleArn: | |
Fn::ImportValue: !Sub "${pEnvName}-greengrass-group-role" | |
GroupVersion: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if GG_GROUP_ID=$(aws cloudformation describe-stacks \ | |
--stack-name iot-$BUILD_ENV-core$GROUP_ID \ | |
--query "Stacks[0].Outputs[?OutputKey=='GroupId'].OutputValue" \ | |
--output text --region $AWS_REGION) && | |
[ $GG_GROUP_ID != 'None' ] | |
then | |
echo "Forcing reset deployments for existing GG group with ID $GG_GROUP_ID..." | |
aws greengrass reset-deployments --group-id $GG_GROUP_ID --force --region $AWS_REGION | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ProcessSignalRule: | |
Type: AWS::IoT::TopicRule | |
Properties: | |
RuleName: devProcessSignalRule | |
TopicRulePayload: | |
Sql: "SELECT * FROM '/dev/+/process/signal'" | |
RuleDisabled: false | |
AwsIotSqlVersion: "2016-03-23" | |
Actions: | |
- Lambda: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IoTProcessSignalPermission: | |
Type: AWS::Lambda::Permission | |
Properties: | |
Action: lambda:InvokeFunction | |
FunctionName: | |
Fn::ImportValue: "dev-process-signal-function-arn" | |
Principal: iot.amazonaws.com | |
SourceAccount: !Ref "AWS::AccountId" | |
SourceArn: !GetAtt ProcessSignalRule.Arn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% npx create-react-native-app --use-npm | |
✔ What is your app named? … how-great-is-amplify-rn | |
✔ How would you like to start › Default new app | |
✔ Downloaded and extracted project files. | |
Using npm to install packages. | |
✔ Installed JavaScript dependencies. | |
✔ Installed pods and initialized Xcode workspace. |