Skip to content

Instantly share code, notes, and snippets.

View carlbray's full-sized avatar

Carl Bray carlbray

View GitHub Profile

Docker for DynamoDb

This document describes how to use docker-compose to start a container with DynamoDb locally, add a table and connect to it from .NET Core.

Table attributes

You can create the table by getting the table attributes using the describe-table operation

aws dynamodb describe-table --table-name some.table > table.json

docker-compose.yml

Docker for KMS

This document describes how to use docker-compose to start a container with KMS locally, seed it and connect to it from .NET Core.
Read up about local-kms before reading further https://github.com/nsmithuk/local-kms

docker-compose.yml

Below is the service description for using KMS with added comments. This refers to version 3.7 of the compose file.

  kms:
    build:

Docker for Firehose to S3

This document describes how to use docker-compose to start a container with Firehose and S3 locally, seed it and connect to it from .NET Core.

docker-compose.yml

Below is the service description for using Firehose and S3 with added comments. This refers to version 3.7 of the compose file.
NB: Running both Firehose and S3 in the same container reduces the work to get them to connect

  firehoses3:
    build:
@carlbray
carlbray / PostmanFunc.md
Last active April 30, 2023 21:48
Sharing functions in Postman

Background

This Gist shows you how to create reusable function which you can access anywhere in your Postman collection.

Good practice when programming is to keep your code DRY (Don't repeat yourself). You should also apply this principle when writing Postman collections for API testing.

Example function

In this example we're going to write a common logging function which just logs to the console. In the future we might want to log somewhere else, so using a common function will allow us to redirect the logging from just one place.