From ace1b5a349da2f975bd548aac8d63e1465592d37 Mon Sep 17 00:00:00 2001 From: Pisut Sritrakulchai Date: Mon, 17 Jul 2023 17:51:22 +0200 Subject: [PATCH 1/2] fix: permission to read SSM --- cdk/resources/DeviceShadow.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdk/resources/DeviceShadow.ts b/cdk/resources/DeviceShadow.ts index d120d37af..b9f7f9679 100644 --- a/cdk/resources/DeviceShadow.ts +++ b/cdk/resources/DeviceShadow.ts @@ -141,7 +141,7 @@ export class DeviceShadow extends Construct { resources: [ `arn:aws:ssm:${Stack.of(this).region}:${ Stack.of(this).account - }:parameter/${Stack.of(this).stackName}/config/stack`, + }:parameter/${Stack.of(this).stackName}/stack/context`, ], }) fetchDeviceShadow.addToRolePolicy(ssmReadPolicy) From 6fff00bd282b47dd5c60f4c2991c079cb8f68ada Mon Sep 17 00:00:00 2001 From: Pisut Sritrakulchai Date: Mon, 17 Jul 2023 18:13:35 +0200 Subject: [PATCH 2/2] test: wait a bit longer for fetcher --- features/RuntimeConfiguration.feature.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/RuntimeConfiguration.feature.md b/features/RuntimeConfiguration.feature.md index c97f62b9d..c5ff589b7 100644 --- a/features/RuntimeConfiguration.feature.md +++ b/features/RuntimeConfiguration.feature.md @@ -281,7 +281,7 @@ And there is this device shadow data for `${fingerprint_deviceId}` in nRF Cloud When I connect to the websocket using fingerprint `${fingerprint}` - + Soon the duration between 2 consecutive device shadow requests for `${fingerprint_deviceId}` should be `5` seconds @@ -292,7 +292,7 @@ Given device shadow fetching config for model `PCA20035+solar` is `10` When I connect to the websocket using fingerprint `${fingerprint}` - + Soon the duration between 2 consecutive device shadow requests for `${fingerprint_deviceId}` should be `10` seconds