Skip to content

Instantly share code, notes, and snippets.

View oasys's full-sized avatar

Jason Lavoie oasys

View GitHub Profile
#!/usr/bin/env python
# All new devices will have interface naming copied from the
# device-type template. For virtual chassis members this will be
# incorrect if they are not in the first position of the stack. This
# script will find and rename these interfaces.
from os import environ
from pprint import pprint
import pynetbox
from more_itertools import chunked
@oasys
oasys / aws.md
Created February 6, 2020 16:13 — forked from colinvh/aws.md
AWS Region Names

Alternative naming schemes for AWS regions

Purpose

The intent is to define terse, standards-supported names for AWS regions.

Schemes

variable "users" {
type = set(object({
username = string
role = string
teams = set(string)
}))
}
locals {
user_team_memberships = flatten([