Skip to content

Instantly share code, notes, and snippets.

@sashman
sashman / config.yml
Created August 13, 2020 08:44
AWS Lambda with Terraform and CircleCI
# .circleci/config.yml
version: 2.1
orbs:
terraform: ngs/[email protected]
jobs:
test:
docker:
def start(_type, _args) do
children = [
SqlToElastisearch.Repo,
]
...
@sashman
sashman / mix.exs
Last active August 28, 2019 21:19
defp deps do
[
{:ecto_sql, "~> 3.0"},
{:postgrex, ">= 0.0.0"}
]
end
@sashman
sashman / consulkv
Last active February 1, 2017 09:59 — forked from progrium/consulkv
Consul KV client, depends on jq
#!/bin/bash
# Usage
# consulkv service-url servicename servicetag
CONSUL="localhost:8500"
main() {
case "$1" in
info)
curl -s "$CONSUL/v1/kv/$2" | jq -r .[]