Skip to content

Instantly share code, notes, and snippets.

@msdocs
msdocs / .tf
Created March 27, 2020 16:24 — forked from lucjross/.tf
ALB Listener Rule, weighted Target Groups
resource "aws_alb_listener_rule" "http_80" {
count = local.lb ? 1 : 0
listener_arn = data.aws_alb_listener.http_80.arn
action {
type = "forward"
target_group_arn = aws_alb_target_group.http_80[0].arn
}
condition {
host_header {
values = [local.host_name]
@msdocs
msdocs / register_schema.py
Created July 2, 2019 16:53 — forked from aseigneurin/register_schema.py
Register an Avro schema against the Confluent Schema Registry
import os
import sys
import requests
schema_registry_url = sys.argv[1]
topic = sys.argv[2]
schema_file = sys.argv[3]
aboslute_path_to_schema = os.path.join(os.getcwd(), schema_file)