Skip to content

Commit 152eff8

Browse files
committed
Documentation updates
1 parent 703d347 commit 152eff8

File tree

10 files changed

+40
-40
lines changed

10 files changed

+40
-40
lines changed

core/sfc-core/src/main/kotlin/com/amazonaws/sfc/data/InProcessSourcesReader.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ class InProcessSourcesReader(
9393
}
9494

9595
companion object {
96-
/**A
97-
* Creates a in process reader from configuration data
96+
/**
97+
* Creates an in process reader from configuration data
9898
* @param schedule ScheduleConfiguration schedule
9999
* @param adapter ProtocolAdapter
100100
* @param sources Mapping<String, ArrayList<String>> sources with channels to read

docs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ described above, for target data without changes to the actual end targets.
362362
## High availability
363363

364364
All SFC components that can run as microservices in their own processes can be configured to have an endpoint for
365-
handling [health endpoints](./sfc-health-endpoints). Mechanisms used to manage the service instances, (e.g., Docker Compose, Kubernetes) can use
365+
handling [health endpoints](./sfc-health-endpoints.md). Mechanisms used to manage the service instances, (e.g., Docker Compose, Kubernetes) can use
366366
these endpoints in their configuration to check the status of a service and recycle instances failing to respond to the
367367
health probe requests. This approach can help ensure the reliability and availability of microservices-based systems.
368368

docs/adapters/nats.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ If a Password is configured then the Username must be configured as well.
638638
While authentication restricts the number of clients that can connect, TLS can be employed to encrypt traffic between the client and server, verifying the server's identity. Furthermore, in the most secure version of TLS (NATS), the server can be configured to verify the client's identity, thereby authenticating it. Upon initiating TLS mode, a nats-server will mandate that all clients connect using TLS.
639639
Additionally, if configured to utilize TLS, client libraries will fail to establish connections to servers without TLS.
640640

641-
**Type**: [CertificateConfiguration](../core/certificate-configuration)
641+
**Type**: [CertificateConfiguration](../core/certificate-configuration.md)
642642

643643

644644
https://docs.nats.io/using-nats/developer/connecting/tls

docs/adapters/pccc.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ The PcccSourceConfiguration class defines which values (channels) to read from a
372372

373373
### AdapterController
374374

375-
The AdapterController property specifies the server identifier for the PLC controller to read from. This identifier must match a controller defined in the Controllers section of the PCCC adapter configuration referenced by the source's [ProtocolAdapter](../core/source-configuration#protocoladapter) attribute.
375+
The AdapterController property specifies the server identifier for the PLC controller to read from. This identifier must match a controller defined in the Controllers section of the PCCC adapter configuration referenced by the source's [ProtocolAdapter](../core/source-configuration.md#protocoladapter) attribute.
376376

377377
**Type** : String
378378

docs/core/channel-configuration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The ChangeFilter property specifies a reference to a [change filter](./change-fi
4949

5050
---
5151
### ConditionFilter
52-
The ConditionFilter property specifies a reference to a [condition filter](./condition-filter-configuration) that should be applied to the channel's values. It accepts a string value that must match an ID of a filter defined in the [ConditionFilters](./sfc-configuration.md#conditionfilters) section of the top-level SFC configuration. This filter evaluates whether values should be processed based on specified conditions. The property is optional - if not specified, no condition filtering will be applied to the channel. This allows for selective processing of values based on defined conditions.
52+
The ConditionFilter property specifies a reference to a [condition filter](./condition-filter-configuration.md) that should be applied to the channel's values. It accepts a string value that must match an ID of a filter defined in the [ConditionFilters](./sfc-configuration.md#conditionfilters) section of the top-level SFC configuration. This filter evaluates whether values should be processed based on specified conditions. The property is optional - if not specified, no condition filtering will be applied to the channel. This allows for selective processing of values based on defined conditions.
5353

5454
**Type**: String
5555

docs/core/schedule-configuration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Default is 1000
5252

5353
### Metadata
5454

55-
Optional key-value pairs that add contextual information to the schedule's output data. When specified, these metadata values are included at the schedule level and can be customized using the [ElementNames](sfc-configuration#elementnames) configuration's Metadata entry
55+
Optional key-value pairs that add contextual information to the schedule's output data. When specified, these metadata values are included at the schedule level and can be customized using the [ElementNames](./sfc-configuration.md#elementnames) configuration's Metadata entry
5656

5757
**Type**: Map[String, String]
5858

docs/examples/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Adapters
2626

2727
Configuration
2828
- [Contextualization & Filter Demo](../../examples/opcua-to-iot-using-filters/README.md)
29-
- [Configuration Signing](../../examples/sign-sfc-config)
29+
- [Configuration Signing](../../examples/sign-sfc-config/README.md)
3030
- [Custom Config Provider Template](../../examples/custom-config-provider/README.md)
3131
- [Custom User Interface and API Config Provider](../../examples/custom-api-ui-config-provider/README.md)
3232
- [J1939 DBC file](../../examples/j1939dbc/README.md)

examples/greengrass-in-process/README.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ aws greengrassv2 get-component \
7777
```
7878
>Note! <br> This permission set is too open for production and should be reduced. It is used here only for simplicity!
7979
80-
5. Furthermore we assume you have the ability to run the following docker container for testing the setup in your Greengrass environment:
80+
5. Furthermore, we assume you have the ability to run the following docker container for testing the setup in your Greengrass environment:
8181

8282
```sh
8383
docker run -d -p 4840:4840 ghcr.io/umati/sample-server:main
@@ -96,7 +96,7 @@ The complete setup will create components for the SFC modules:
9696
- aws-iot-mqtt-target
9797
- opcua
9898

99-
**The setup will configure all modules to be started in SFC's [`in-process mode`](../README.md#in-process-and-ipc-deployment-models)**. That means that all SFC modules run inside the sfc-main process on a single host.
99+
**The setup will configure all modules to be started in SFC's [`in-process mode`](../../docs/sfc-running-adapters.md#running-protocol-adapters-in-process)**. That means that all SFC modules run inside the sfc-main process on a single host.
100100

101101
>Note! <br>
102102
If you have previously installed the modules in SFC's IPC mode you must remove the components from IOT CORE and from your Greengrass deployment!
@@ -139,7 +139,7 @@ You should see now the following directory structure:
139139
![Working directory structure with downloaded modules](img/directory_structure1.png "working directory structure with downloaded modules")
140140

141141

142-
## Step 3: Creating Greengrass recipes
142+
## Step 3: Creating Greengrass recipes
143143
Now we create the recipes for the sfc modules. Execute the following command:
144144

145145
```sh
@@ -197,7 +197,7 @@ Now copy the following content into the file **~/environment/GreengrassSFC/recip
197197

198198
```
199199

200-
>Note! <br> Replace the placeholder ***[REPLACE WITH YOUR S3 BUCKET]*** with an S3 bucket name where you want later to store your Greengrass components artifacts and recepies!
200+
>Note! <br> Replace the placeholder ***[REPLACE WITH YOUR S3 BUCKET]*** with an S3 bucket name where you want later to store your Greengrass components artifacts and recepes!
201201
202202

203203
Now copy the following content into the file **~/environment/GreengrassSFC/recipes/com.amazon.sfc.aws-s3-target-1.0.0.json**:
@@ -245,7 +245,7 @@ Now copy the following content into the file **~/environment/GreengrassSFC/recip
245245

246246
```
247247

248-
>Note! <br> Replace the placeholder ***[REPLACE WITH YOUR S3 BUCKET]*** with an S3 bucket name where you want later to store your Greengrass components artifacts and recepies!
248+
>Note! <br> Replace the placeholder ***[REPLACE WITH YOUR S3 BUCKET]*** with an S3 bucket name where you want later to store your Greengrass components artifacts and recepes!
249249
250250
Now copy the following content into the file **~/environment/GreengrassSFC/recipes/com.amazon.sfc.debug-target-1.0.0.json**:
251251
```json
@@ -291,7 +291,7 @@ Now copy the following content into the file **~/environment/GreengrassSFC/recip
291291
}
292292

293293
```
294-
>Note! <br> Replace the placeholder ***[REPLACE WITH YOUR S3 BUCKET]*** with an S3 bucket name where you want later to store your Greengrass components artifacts and recepies!
294+
>Note! <br> Replace the placeholder ***[REPLACE WITH YOUR S3 BUCKET]*** with an S3 bucket name where you want later to store your Greengrass components artifacts and recepes!
295295
296296
Now copy the following content into the file **~/environment/GreengrassSFC/recipes/com.amazon.sfc.opcua-1.0.0.json**:
297297
```json
@@ -337,7 +337,7 @@ Now copy the following content into the file **~/environment/GreengrassSFC/recip
337337
}
338338

339339
```
340-
>Note! <br> Replace the placeholder ***[REPLACE WITH YOUR S3 BUCKET]*** with an S3 bucket name where you want later to store your Greengrass components artifacts and recepies!
340+
>Note! <br> Replace the placeholder ***[REPLACE WITH YOUR S3 BUCKET]*** with an S3 bucket name where you want later to store your Greengrass components artifacts and recepes!
341341
342342
Now copy the following content into the file **~/environment/GreengrassSFC/recipes/com.amazon.sfc.sfc-main-1.0.0.json**:
343343

@@ -568,7 +568,7 @@ Now copy the following content into the file **~/environment/GreengrassSFC/recip
568568
```
569569
>Note! <br>
570570
1. Make sure that after copying the script into the file that the line with the **"Script": "printf '{configuration:/SFC_CONFIG_JSON}' > {artifacts:path}/conf.json && {artifacts:path}/sfc-main/bin/sfc-main -config {artifacts:path}/conf.json""** has the ticks (') and not the less than character (**<**) as some markup viewer replace the (**'**) with (**<**).
571-
2. Replace the placeholder ***[REPLACE WITH YOUR S3 BUCKET]*** with an S3 bucket name where you want later to store your Greengrass components artifacts and recepies!
571+
2. Replace the placeholder ***[REPLACE WITH YOUR S3 BUCKET]*** with an S3 bucket name where you want later to store your Greengrass components artifacts and recepes!
572572

573573
3. Replace the placeholder ***[REPLACE WITH YOUR S3 BUCKET FOR OPCUA DATA]*** with an S3 bucket name and ***[AWS BUCKET REGION]*** with the AWS region where you want to store the data collected from the OPCUA server!
574574

@@ -632,7 +632,7 @@ Component Name: com.amazon.sfc.sfc-main
632632
```
633633

634634
>Notice: <br>
635-
Because we use [`in process model`](../../docs#in-process-and-ipc-deployment-models) the components on which sfc-main depends only unpack the the modules during deployment and do not start a process. So they report State: *Finished*. <br>
635+
Because we use [`in process model`](../../docs/sfc-running-adapters.md#running-protocol-adapters-in-process) the components on which sfc-main depends only unpack the modules during deployment and do not start a process. So they report State: *Finished*. <br>
636636
The component sfc-main is the only component which actually start a process and keeps running.
637637

638638
>Note! <br>
@@ -647,11 +647,11 @@ sudo /greengrass/v2/bin/greengrass-cli deployment create --remove "com.amazon.sf
647647

648648
>Note! <br>
649649
If you had not started the OPCUA test docker container before deploying the sfc-main component you will see in the **/greengrass/v2/logscom.amazon.sfc.sfc-main.log** the following error code which you can ignore: <br>
650-
*ERROR - Error creating client for for source "OPCUA-SOURCE" at opc.tcp://localhost:4840//, Connection refused: localhost/127.0.0.1:4840*.
650+
*ERROR - Error creating client for source "OPCUA-SOURCE" at opc.tcp://localhost:4840//, Connection refused: localhost/127.0.0.1:4840*.
651651

652652

653653
## Step 5: Testing the deployment
654-
To test the deployment we have to start the docker container with the test OPCUA server. Do do this use the following command:
654+
To test the deployment we have to start the docker container with the test OPCUA server. Do this use the following command:
655655

656656
```bash
657657
docker run -d -p 4840:4840 ghcr.io/umati/sample-server:main
@@ -705,7 +705,7 @@ For that open the **IOT Core web console** and select **MQTT test client**.
705705

706706
![](img/MQTT_test_client.png "AWS IOT Core MQTT Test Client")
707707

708-
You should be able to see messages beeing received.
708+
You should be able to see messages being received.
709709

710710
## Step 6: Remove the local deployment
711711
After successful testing we remove the deployment which was done locally with the following command:
@@ -716,7 +716,7 @@ sudo /greengrass/v2/bin/greengrass-cli deployment create --remove "com.amazon.sf
716716

717717

718718
## Step 7: Publish the components
719-
To publish these these components make one more time sure that you have replaced the ***[REPLACE WITH YOUR S3 BUCKET]*** placeholder with the S3 bucket where you want to upload the components in all recipes!
719+
To publish these components make one more time sure that you have replaced the ***[REPLACE WITH YOUR S3 BUCKET]*** placeholder with the S3 bucket where you want to upload the components in all recipes!
720720

721721
Upload all artifacts and recipies to S3 with the following command:
722722

@@ -817,7 +817,7 @@ Because we used SFC's `in-process` model all components which deploy the depende
817817
# Removing components from deployment and deleting components
818818
## Remove SFC components from deployment
819819

820-
To remove the components from the Greengrass environemnt do the following steps:
820+
To remove the components from the Greengrass environment do the following steps:
821821

822822
1. Go to the AWS IoT Core web console and select **Greengrass devices** then select **Deployments** then check the box before your deployment then select **Revise**
823823

@@ -866,7 +866,7 @@ To delete the components from IOT Core do the following steps:
866866
- com.amazon.sfc.opcua
867867
- com.amazon.sfc.aws-s3-target
868868
- com.amazon.sfc.aws-iot-mqtt-target
869-
- com-amazon.svf.debug-tagret
869+
- com-amazon.svf.debug-target
870870

871871

872872
[Examples](../../docs/examples/README.md)

0 commit comments

Comments
 (0)