Skip to content

Commit

Permalink
fix(migrate): add thing to group
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Jan 7, 2025
1 parent 6c2cea6 commit b73d9aa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions migrate-device-certificates.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
AddThingToThingGroupCommand,
AttachThingPrincipalCommand,
CreateThingCommand,
IoTClient,
Expand Down Expand Up @@ -75,6 +76,13 @@ for (const device of devicesToMigrate) {
}),
)

await toIot.send(
new AddThingToThingGroupCommand({
thingGroupName: 'nrf-asset-tracker',
thingName: device,
}),
)

await toIot.send(
new AttachThingPrincipalCommand({
thingName: device,
Expand Down

0 comments on commit b73d9aa

Please sign in to comment.