From 5ec8af6fb3d87c9bf1ee20ed169f925b23a297db Mon Sep 17 00:00:00 2001 From: Joseph Klix Date: Thu, 12 Sep 2024 14:33:34 -0700 Subject: [PATCH] greengrass sample update fix spacing to allow easy copy/paste into aws console without any errors --- samples/ipc_greengrass.md | 80 +++++++++++++++++++-------------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/samples/ipc_greengrass.md b/samples/ipc_greengrass.md index 5ebe5139..de75a29e 100644 --- a/samples/ipc_greengrass.md +++ b/samples/ipc_greengrass.md @@ -19,30 +19,30 @@ To run the sample, create a new AWS IoT Greengrass component and deploy it to yo
```yaml - --- - RecipeFormatVersion: "2020-01-25" - ComponentName: "GreengrassIPC" - ComponentVersion: "1.0.0" - ComponentDescription: "IPC Greengrass sample." - ComponentPublisher: "" - ComponentConfiguration: - DefaultConfiguration: - accessControl: - aws.greengrass.ipc.mqttproxy: - software.amazon.awssdk.iotdevicesdk.GreengrassIPC:1: - policyDescription: "Allows access to publish to all AWS IoT Core topics. For demonstration only - use best practices in a real application" - operations: - - aws.greengrass#PublishToIoTCore - resources: - - "*" - Manifests: - - Platform: - os: all - Artifacts: - - URI: "/GreengrassIPC/1.0.0/GreengrassIPC.zip" - Lifecycle: - RequiresPrivilege: true - Run: "python3 -u {artifacts:path}/GreengrassIPC/main.py " +--- +RecipeFormatVersion: "2020-01-25" +ComponentName: "GreengrassIPC" +ComponentVersion: "1.0.0" +ComponentDescription: "IPC Greengrass sample." +ComponentPublisher: "" +ComponentConfiguration: +DefaultConfiguration: + accessControl: + aws.greengrass.ipc.mqttproxy: + software.amazon.awssdk.iotdevicesdk.GreengrassIPC:1: + policyDescription: "Allows access to publish to all AWS IoT Core topics. For demonstration only - use best practices in a real application" + operations: + - aws.greengrass#PublishToIoTCore + resources: + - "*" +Manifests: +- Platform: + os: all + Artifacts: + - URI: "/GreengrassIPC/1.0.0/GreengrassIPC.zip" + Lifecycle: + RequiresPrivilege: true + Run: "python3 -u {artifacts:path}/GreengrassIPC/main.py " ``` Replace the following with your information: @@ -70,22 +70,22 @@ As an example, you could use the following `gdk-config.json` below in your compo
```json - { - "component": { - "software.amazon.awssdk.iotdevicesdk.GreengrassIPC": { - "author": "", - "version": "1.0.0", - "build": { - "build_system": "zip" - }, - "publish": { - "bucket": "", - "region": "" - } - } - }, - "gdk_version": "1.0.0" - } +{ +"component": { + "software.amazon.awssdk.iotdevicesdk.GreengrassIPC": { + "author": "", + "version": "1.0.0", + "build": { + "build_system": "zip" + }, + "publish": { + "bucket": "", + "region": "" + } + } +}, +"gdk_version": "1.0.0" +} ``` Replace the following with your information: