> Source: https://meetrix.io/blogs/nodered-low-code-automation-gcp/
> Markdown copy of that page. Cite the URL above, not this file.

Development

# Node-RED on GCP: Low-Code IoT and API Automation

[By Shalomi Umeshika](https://meetrix.io/blogs/authors/shalomi-umeshika/) • November 17, 2026 • 11 min read

Google pulled the plug on Cloud IoT Core back in August 2023, and a lot of device projects on Google Cloud have been building their own pipeline ever since. Readings arrive over MQTT, something has to decode them, throw out the noise, and pass what's left to Pub/Sub, BigQuery, or an internal API. **Node-RED** is a natural fit for that middle job, and it handles plain API glue and scheduled tasks just as well.

Meetrix's Google Cloud image gets you running from a single deployment form: Node-RED 5.0.9 on Node.js 24 in Docker, on Ubuntu 26.04, behind Nginx with Let's Encrypt SSL and the editor login already switched on. Below, I'll cover what Node-RED does, where it fits now that IoT Core is gone, the deployment steps, and the settings worth changing on day one. You can [launch the Meetrix Node-RED image on Google Cloud Marketplace](https://console.cloud.google.com/marketplace/product/meetrix-public/nodered-low-code-automation).

The Quick Verdict

Node-RED fits

Device data on Google Cloud

Subscribe to your MQTT broker, reshape the readings, and forward them to Pub/Sub, BigQuery, or your own API.

Node-RED fits

High-volume glue between APIs

No per-task fee. A flow that runs a million times a month costs the same VM as one that runs ten times.

Use a hosted tool

A few SaaS-to-SaaS automations

Ready-made app connectors and no server. Our [Node-RED on AWS article](https://meetrix.io/blogs/node-red-aws-marketplace/) compares it with Zapier and n8n.

Try it for five days

You're not sure yet

The listing has a free trial with up to USD 50 in licence credits. Build one real flow before you decide.

## What is Node-RED?

[Node-RED](https://nodered.org/) is an open-source, low-code tool for flow-based programming, released under the Apache 2.0 licence and run as an OpenJS Foundation project. You drag nodes onto a canvas in the browser, wire them together, and deploy with one click. The [release notes on GitHub](https://github.com/node-red/node-red/releases) list 5.0.9, published October 21, 2026, as the current maintenance release.

This one is a bit more than a typical maintenance drop. Flows can now be drag-ordered in the Explorer sidebar, tabs and the explorer show error badges, HTML script and style blocks get JavaScript and CSS support, and the Monaco editor moves to 0.57.

The 5.x line needs Node.js 22.9 or later, and the project recommends Node.js 24. The Meetrix image already runs on 24, so there's nothing to upgrade on your side.

### What it does

Devices and protocols

-   MQTT, HTTP, WebSocket, TCP and UDP nodes out of the box
-   Built for sensor readings, gateways and machine data

APIs and integrations

-   REST endpoints from an http in and an http response node
-   Call any API, reshape the JSON, pass it on

Logic and code

-   Switch, change and template nodes for routing messages
-   Function nodes for the few lines of JavaScript you can't avoid
-   Inject nodes for scheduled jobs

Community nodes

-   Database clients, dashboards and cloud services from the palette manager
-   Thousands more in the [Node-RED flow library](https://flows.nodered.org/)

## Node-RED after Cloud IoT Core

IoT Core gave devices an MQTT endpoint that dropped messages straight into Pub/Sub. Since it closed, [Pub/Sub](https://cloud.google.com/pubsub/docs/overview) is still the place most Google Cloud data pipelines start, but it has no MQTT endpoint of its own. Something has to sit between the devices and Google's services. A common shape looks like this:

1.  Devices publish to an MQTT brokerMosquitto, EMQX, HiveMQ, or another broker you run or license. The broker handles device connections and authentication.
2.  Node-RED subscribes to the topicsAn mqtt in node per topic. Decode the payload, add the device ID and a timestamp, and throw away readings that are clearly broken.
3.  Node-RED forwards what's leftTo Pub/Sub, BigQuery, Cloud Storage, a database, or your own API, with switch nodes deciding which reading goes where.

Two honest caveats. Node-RED is an MQTT client, not a broker, and it has no device registry, so provisioning and per-device credentials stay with the broker. And the community [node-red-contrib-google-cloud](https://flows.nodered.org/node/node-red-contrib-google-cloud) package, which adds Pub/Sub, BigQuery and Firestore nodes, has not been updated in years: the latest release (0.0.26) dates to May 2022, and its own README says it is not an official Google product. Test it before you rely on it. The safer route is an http request node calling the [Pub/Sub publish REST method](https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.topics/publish) directly, using a service account that has only the Pub/Sub Publisher role.

**Node-RED replaces the glue, not the broker.** If you were on IoT Core, plan for a broker plus Node-RED, and keep the device registry in the broker.

## Who Node-RED on GCP suits

A good fit if you are

-   An IoT or operations team moving MQTT readings into Pub/Sub, BigQuery, or a dashboard
-   A developer who wants quick REST endpoints and glue code without building a full service
-   Running integrations at a volume where per-task pricing hurts
-   Already billed through Google Cloud and keen to keep the data in your own project

Look elsewhere if you need

-   An MQTT broker or device registry on its own (run one beside Node-RED)
-   Hundreds of ready-made SaaS connectors with OAuth handled for you
-   Non-technical users building automations with no developer nearby

## Why run Node-RED on Google Cloud?

You could start the Docker image on any VM. The Marketplace image covers the parts people put off and then regret.

One form, everything set up

The deployment form creates a Compute Engine VM in the zone you pick, with Node-RED in Docker behind Nginx and ports 80 and 443 open. Node-RED itself listens on localhost only.

Login on from the start

The [official security guide](https://nodered.org/docs/user-guide/runtime/securing-node-red) puts it plainly: "By default, the Node-RED editor is not secured". The image turns on the admin login with the password you set in the form.

SSL without the fiddling

Give the form a domain and an admin email, and the image requests a Let's Encrypt certificate on first boot. If DNS isn't ready yet, one script on the server finishes the job later.

Try it before you pay

A 5-day free trial with up to USD 50 in licence fee credits. Google Cloud still charges for the VM and disk while you test.

The licence fee and the VM land on the same Google Cloud bill as the rest of your project. If you're weighing the two marketplaces in general, our [AWS Marketplace vs Google Cloud Marketplace comparison](https://meetrix.io/blogs/aws-marketplace-vs-google-cloud-marketplace-isvs/) covers how they differ.

## Deploy Node-RED on GCP in five steps

1.  Open the Marketplace listingGo to [Node-RED on Google Cloud Marketplace](https://console.cloud.google.com/marketplace/product/meetrix-public/nodered-low-code-automation), click Launch, pick your project and accept the terms.
2.  Fill in the deployment formUse the table below. Tick the trial box at the bottom if you want the five free days.
3.  Deploy and waitThe deployment takes a few minutes, and the first boot a few more while the VM sets your password and starts Node-RED.
4.  Point your domainCopy the external IP from the VM's Network interfaces section and create a DNS A record for your domain. Make the IP static first (see below).
5.  Sign inOpen your domain, or the `site_url` output over plain HTTP until SSL is ready. The username is `admin` and the password is the one you set in the form.

### Deployment form fields

| Field | What to enter |
| --- | --- |
| Deployment name | A label. The VM is named after it, with `-vm` added. |
| Deployment service account | An existing account with `roles/config.agent`, `roles/compute.admin` and `roles/iam.serviceAccountUser`, or let the form create one |
| Zone | Close to your devices or users |
| Machine type | `e2-small` (2 shared vCPUs, 2 GB) by default; `e2-medium` or larger for heavy throughput |
| Boot disk | Balanced persistent disk, 20 GB by default |
| Network and subnetwork | `default` unless you have your own VPC |
| External IP | Ephemeral by default, or a reserved static IP |
| Allow SSH | On by default; narrow the source range to your own IP |
| Domain name | The editor's domain, e.g. `nodered.yourcompany.com` |
| Admin email and password | The email is for the SSL certificate. The password is 8 to 64 characters: letters, digits and `!@#%^*_+=.,-` only |

The [Node-RED GCP developer guide](https://meetrix.io/blogs/nodered-gcp-developer-guide/) walks through every field with screenshots, plus logs, password changes and troubleshooting.

Make the external IP static before you set DNS

An ephemeral external IP can change when the VM stops and starts, and your DNS record then points at nothing. That breaks the editor and every endpoint your devices call. [Promote it to a static address](https://cloud.google.com/vpc/docs/reserve-static-external-ip-address) under VPC network before you create the A record.

### If SSL doesn't set itself up

That happens when DNS wasn't pointing at the VM on first boot, which is the usual case with an ephemeral IP. Once the record resolves, SSH in from the VM page and run:

```bash
sudo bash /root/certificate_generate_standalone.sh
```

### Seeing a 502 Bad Gateway?

Nginx is up but Node-RED hasn't finished starting. Give it about five minutes and refresh. If it doesn't clear, check the container and the first-boot log:

```bash
sudo docker ps
sudo docker logs --tail 100 -f nodered
sudo journalctl -u google-startup-scripts.service | grep -i -E "node-red|ssl"
```

## Build your first flow

The quickest proof that everything works is an HTTP endpoint that answers with JSON.

1.  Add an http in nodeFrom the network category, set Method to GET and URL to `/hello`.
2.  Add a function nodePaste the code below into its On Message tab.
3.  Add an http response nodeWire http in to function, and function to http response.
4.  Deploy and call itClick Deploy, then open `https://your-domain/hello`. A JSON reply with the current time means the flow is live.

```javascript
msg.payload = { message: "Hello from Node-RED on GCP", time: new Date().toISOString() };
return msg;
```

For device data, swap the http in node for an mqtt in node pointed at your broker, and add a debug node to watch the readings arrive in the sidebar.

Your endpoints are public until you protect them

The admin login covers the editor, not the endpoints you build. Anyone who knows the URL of an http in endpoint can call it. Set `httpNodeAuth` in `/opt/nodered/data/settings.js` to require a username and password; the developer guide has the exact commands.

## Running Node-RED safely

The editor runs code

-   Anyone who can log in can run their own JavaScript on the VM through function nodes.
-   Keep the admin password to a few people. Add read-only users in the `adminAuth` block of `settings.js` instead of sharing it.
-   Once SSL is on, stop using the plain HTTP `site_url`, or the password crosses the network unencrypted.

The VM

-   Narrow the SSH source range to your own IP rather than `0.0.0.0/0`.
-   Leave full Google Cloud API access off. Give Node-RED a service account with only the roles a flow needs, such as Pub/Sub Publisher.
-   Some community nodes are memory-hungry. If the VM slows after installing one, move up a machine type.
-   The hardening guide recommends locking the palette in production (`externalModules.palette.allowInstall: false`) and running Node-RED as a non-root user.

### Back up flows and the secret together

Node-RED has no database. Everything lives in `/opt/nodered/data`: `settings.js`, `flows.json`, `flows_cred.json` and the installed nodes. Back it up together with `/opt/nodered/.env`, because the credentials in `flows_cred.json` only decrypt with the `NODE_RED_CREDENTIAL_SECRET` in that file, and each deployment generates its own.

```bash
cd ~
sudo tar -czf nodered-backup-$(date +%F).tar.gz -C /opt/nodered data .env
```

Copy the archive off the VM and into a private Cloud Storage bucket from your own machine:

```bash
gcloud compute scp <deployment-name>-vm:~/nodered-backup-<date>.tar.gz . --zone=<zone>
gcloud storage cp nodered-backup-<date>.tar.gz gs://<your-bucket>/nodered-backups/
```

The archive holds the secret and every credential your flows use, so keep that bucket private. For a hands-off safety net on top, a [snapshot schedule](https://cloud.google.com/compute/docs/disks/scheduled-snapshots) on the boot disk keeps point-in-time copies of the whole VM.

**An editor export is not a backup.** Ctrl+E gives you the flow JSON but leaves the credentials behind. Keep the server archive too.

Upgrades

For a new Marketplace version, back up, deploy the new version and restore the archive into it; the developer guide has the restore commands that carry the credential secret across. For a minor release you can also bump `NODE_RED_VERSION` in `.env` and pull the new image, after a backup.

## Marketplace image, Docker, or Cloud Run?

Recommended

Meetrix image on GCP Marketplace

Best for production flows with the least setup

Editor login, Nginx, SSL and the backup layout ready from one form, billed through your Google Cloud account. Supported by Meetrix.

Docker on your own VM

Best for testing or a home lab

The [official Docker guide](https://nodered.org/docs/getting-started/docker) gets it running quickly. The editor is open until you configure `adminAuth`, and the proxy and SSL are yours to add.

Cloud Run

Best for stateless HTTP flows only

Possible, but the container's disk doesn't persist, so flows need outside storage, and a service that scales to zero drops MQTT connections and skips scheduled injects.

## Resources

[

Node-RED on GCP - Developer Guide

Step-by-step deployment on Google Cloud: launching the Marketplace image, filling in the deployment form, pointing DNS, generating SSL, protecting endpoints, changing the admin password, backing up flows and upgrading.

Meetrix.IO | Binuka Ranatunga

![Node-RED on GCP Developer Guide cover](https://meetrix.io/blog-images/paas-products-articles/nodered-gcp/node-red-gcp-image.png)](https://meetrix.io/blogs/nodered-gcp-developer-guide/)

## Is Node-RED on GCP worth it?

If you have device data or API glue to run inside Google Cloud, yes. You get a visual editor, MQTT and HTTP built in, no task meter, and a VM in your own project that costs the same whether a flow fires ten times or a million. The image takes care of the login, the certificate and a backup layout that keeps credentials recoverable.

It isn't a full IoT Core replacement on its own: you still need an MQTT broker for device connections. And for a handful of SaaS automations built by non-developers, a hosted tool is less work.

Node-RED usually sits in the middle of other tools. Send its readings to a Postgres database and REST API with [Supabase on Google Cloud](https://meetrix.io/blogs/supabase-firebase-alternative-gcp/), chart them with the setup in our [Grafana developer guide](https://meetrix.io/blogs/grafana-developer-guide/), or call a private model from a flow through [LocalAI's OpenAI-style API](https://meetrix.io/blogs/localai-openai-alternative-gcp/). If your flows are mostly LLM calls rather than devices, the [Flowise, Langflow and n8n comparison](https://meetrix.io/blogs/flowise-vs-langflow-vs-n8n/) is the better starting point. Specs and launch options for Google Cloud and AWS are on the [Node-RED store page](https://meetrix.io/store/node-red/).

## Frequently Asked Questions

What is Node-RED?

Node-RED is an open-source, low-code tool for flow-based programming. You wire nodes together in a browser to connect devices, APIs and services.

How do I deploy Node-RED on Google Cloud?

Use the Meetrix Marketplace image. Fill in the deployment form, wait for the VM to boot, point your domain, and sign in. The [developer guide](/blogs/nodered-gcp-developer-guide/) walks through every step with screenshots.

Can Node-RED replace Google Cloud IoT Core?

Not on its own. IoT Core provided an MQTT endpoint into Pub/Sub, and Node-RED is an MQTT client, not a broker. You'll still need a broker like Mosquitto or EMQX for device connections and a device registry.

Which machine type does Node-RED need on GCP?

The default is e2-small (2 shared vCPUs, 2 GB). Move to e2-medium or larger for heavy throughput or memory-hungry community nodes.

Is there a free trial?

Yes, the listing includes a 5-day free trial with up to USD 50 in licence fee credits. Google Cloud infrastructure charges still apply.

Are my HTTP endpoints protected by the editor login?

No. The editor login only protects the editor. Configure httpNodeAuth in settings.js to protect the endpoints you build.

Why did my Node-RED domain stop working after a VM restart?

The VM probably had an ephemeral external IP that changed on restart. Promote the IP to a static address in VPC network settings and update your DNS record if needed.

What's new in Node-RED 5.0.9?

It's a maintenance release with drag-orderable flows in the Explorer sidebar, error badges on tabs and the explorer, JavaScript/CSS support in HTML script and style blocks, and the Monaco editor updated to 0.57.

Where do I get help?

Start with the Meetrix [developer guide](/blogs/nodered-gcp-developer-guide/). For issues with the image itself, contact Meetrix support. For Node-RED questions, the official docs and forum are the best places to look.

## Ready to run your flows on Google Cloud?

Deploy Node-RED in your own Google Cloud project from one form, with the editor login and SSL set up for you. Try it free for five days.

[Get Started on GCP Marketplace](https://console.cloud.google.com/marketplace/product/meetrix-public/nodered-low-code-automation)

Meetrix Store

Node-RED

Low-code flows that wire together IoT devices, APIs and services

[Deploy it](https://meetrix.io/store/node-red/)

Meetrix Store New

Deploy what this guide covers, pre-configured.

-    [Node-RED Low-code flows that wire together IoT devices, APIs and services](https://meetrix.io/store/node-red/)
-    [Grafana Dashboards and alerts for Prometheus and more](https://meetrix.io/store/grafana/)
-    [Apache NiFi Real-time data pipelines with provenance](https://meetrix.io/store/apache-nifi/)
-    [Jitsi Meet Self-hosted video calls for 50 to 500 users](https://meetrix.io/store/jitsi-meet/)
-    [RustDesk Remote desktop AMI, a TeamViewer alternative](https://meetrix.io/store/rustdesk/)
-    [Coturn TURN/STUN for WebRTC, no per-minute relay fees](https://meetrix.io/store/coturn/)

[Browse all products](https://meetrix.io/store/)
