Start building

Messaging and events

JSON event → SNS topic

Serialize JSON, publish to a named SNS alias, and inspect broker acceptance separately from subscriber delivery.

  • JSON → Amazon SNS
  • Starter
  • 3 min

Last verified 2026-10-31 at f4ce7d0 — simulation fixtures

Try this template in Studio

Studio activation is a one-time payment of USD 20.

Flow

Drawn at build time from the node positions in the template's process definitions. Numbered markers are the walkthrough stages.

Main processJSON event → SNS topic4 activities

Scroll sideways to see the whole flow.

Flow diagram of JSON event → SNS topic4 activities and 3 transitions: Order event, Serialize event, Publish approved event, Broker acceptance.Order eventstartSerialize eventjson.renderPublish approved eventsns.publish1Broker acceptanceend
List the 4 activities and 3 transitions

Activities

  1. Order event start
  2. Serialize event json.render
  3. Publish approved event sns.publish
  4. Broker acceptance end

Transitions

  • Order event → Serialize event (on success)
  • Serialize event → Publish approved event (on success)
  • Publish approved event → Broker acceptance (on success)

Walkthrough

  1. Publish eventBind the topic alias and message text.

What you will practise

  • Serialize message bodies explicitly.
  • Separate acceptance from delivery.

Sample cases

1 case with 3 assertions, run with python -m server.integration examples --all in simulation.

Broker acceptance only

Passed

No real publish or subscription.

Expected result Notification accepted; subscriber delivery is not asserted.

3/3 assertions

  • Simulated
  • Accepted
  • Not a delivery confirmation

This sample run only; not a production certification.

Prerequisites

Runtime
Cohuno runtime 1.27.0, the version recorded when these cases last passed.
Starter
Manual start; no listener.
Optional dependencies
  • Cloud SDKs (requirements-cloud.txt) needed only for live connections; simulation uses fixtures
Selected for this closure by the same rules as runtime packaging.
Simulation fixtures
  • sns_events sns · sns.publish
Every sample run replaces these connections with the fixtures defined in its case. A live run needs an operator to configure an authorized connection for each.
Verification details

Provenance

What was verified, and when. The content part changes whenever the pack, a process in its closure, the runtime version or a case result changes; the gallery check then fails until the gallery is regenerated and the changed templates are verified again.

Verified content

Pack SHA-256
6ecc047f81570f618aeba13d4cddb12711b3d8f489d116c5bcc5b40a4a05a3f7
Closure SHA-256
4d6edc51c5157af316dd1c89fcf65a6f0e8f6ae7d2132a822d0ea1d55679d4db
Runtime
1.27.0
Results
1/1 cases, 3/3 assertions, mode simulate, external calls: none.
Files in the closure
  • server/integration/example_packs/v14_sns_event.json
  • server/integration/templates/v14_sns_event.json

Verification event

Commit
f4ce7d08eedc90267b405ed1974344153a8b3a34
Verified at (UTC)
2026-10-31T21:19:21Z

How the Cohuno team reproduces this check

PYTHONPATH=. python -m server.integration examples --example v14_sns_event
PYTHONPATH=. python scripts/export_public_gallery.py --check