You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This sample uses the AWS IoT [Greengrass IPC Client](https://aws.github.io/aws-iot-device-sdk-js-v2/node/modules/greengrasscoreipc) to defined a Greengrass component that subscribes to MQTT messages
6
+
on a topic in AWS IoT Core and periodically publishes messages to that topic.
7
+
8
+
Note: For this sample to work, you must have configured and installed the AWS Greengrass software on the local host. The IAM role
9
+
assumed by the Greengrass Nucleus must also include permissions to connect, subscribe, and publish to AWS IoT Core.
10
+
11
+
## Deploying the Component
12
+
13
+
First, go to the `./artifacts/com.amazon.RpcTest/1.0.0` folder and run the following command:
14
+
15
+
```sh
16
+
npm install
17
+
```
18
+
19
+
Then, from this folder, run the following Greengrass CLI command:
Check your nucleus logs and component log for details about the success of the deployment and component execution. See
32
+
the [AWS Greengrass Documentation](https://docs.aws.amazon.com/greengrass/v2/developerguide) for more
33
+
details about Greengrass components, Greengrass IPC, and the Greengrass CLI.
34
+
35
+
## ⚠️ Usage disclaimer
36
+
37
+
These code examples interact with services that may incur charges to your AWS account. For more information, see [AWS Pricing](https://aws.amazon.com/pricing/).
38
+
39
+
Additionally, example code might theoretically modify or delete existing AWS resources. As a matter of due diligence, do the following:
40
+
41
+
- Be aware of the resources that these examples create or delete.
42
+
- Be aware of the costs that might be charged to your account as a result.
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
39
+
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
40
+
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
41
+
// "typeRoots": [], /* List of folders to include type definitions from. */
42
+
// "types": [], /* Type declaration files to be included in compilation. */
43
+
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
44
+
"esModuleInterop": true/* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
45
+
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
46
+
/* Source Map Options */
47
+
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
48
+
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
49
+
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
50
+
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
51
+
/* Experimental Options */
52
+
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
53
+
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
0 commit comments