Skip to content

Instantly share code, notes, and snippets.

View m-allanson's full-sized avatar
💭
I may be slow to respond.

Mike Allanson m-allanson

💭
I may be slow to respond.
View GitHub Profile
@m-allanson
m-allanson / configurationUpdate.js
Last active April 13, 2022 12:35 — forked from mvisintin/configurationUpdate.js
Minimal configuration update example
// Note you must be authorised to use the provided GCloud project.
// Use `gcloud auth application-default login` to auth for the current machine
const iot = require('@google-cloud/iot');
const { KeyManagementServiceClient } = require('@google-cloud/kms');
const uuid = require('uuid');
const { readFileSync } = require('fs');
const crypto = require('crypto');
const { config } = require('process');