Skip to content

kurkik sns diff: compare Amazon SNS setups

diff compares two sides. Each side is a connection or an exported document. The first is what you expect, the second is what is really there. It only reads.

If a name is both a file and a connection, write document:<path> or connection:<name>.

Terminal window
kurkik sns diff staging prod
kurkik sns diff prod-sns.yaml prod
Flag What it does
--allow-host HOST Allow fetching remote $refs from this host. Nothing is fetched otherwise. You can repeat it.
--consumers Include each topic’s subscriptions.
--exclude GLOB Skip topics that match. It wins over --include. You can repeat it.
--include GLOB Only topics whose name matches this pattern. You can repeat it.
--include-internal Also show the system’s own topics, such as __consumer_offsets or Pulsar’s system topics.
--kinds KIND[,KIND...] Show only these findings: changed, missing, unmanaged, unknown, not-verifiable, matched. The exit code still counts all of them.
--max-channels N Read at most this many topics.
-o, --output FORMAT Output format: text, markdown or json. Markdown is handy in pull requests.
--strict Count things that only the second side has as drift too.
--timeout DURATION Give up after this long, for example 60s or 2m.
Code Means
0 No drift.
2 Drift found.
3 No drift found, but something could not be checked.

All codes: exit codes.

Real output, one question per page: Amazon SNS diff examples.

Flag What it does
--config FILE Use this connections file instead of $KURKIK_CONFIG or ~/.config/kurkik/connections.yaml.
-h, --help Show help.
--no-color No colours. NO_COLOR=1 does the same.
--no-project Ignore the project connections file.
--project-dir DIR Look for the project’s .kurkik/connections.yaml from this folder up.
--trust-project Use the project file without asking. Meant for CI. Same as KURKIK_TRUST_PROJECT=1.
-v, --verbose Say what Kurkik finds while it reads (on stderr).
-V, --version Show the version.