Nathan Handler Profile picture
Site Reliability Engineer @Reddit, @Ubuntu/@Debian Developer. Formerly @liberachat/@freenodestaff, @OrchidProtocol, @Yelp - @nhandler@fosstodon.org
Jan 9, 2019 4 tweets 2 min read
A common pattern that emerges when using @HashiCorp #Terraform is to have many types of policies inlined using a heredoc. This is frustrating as it means you can't use standard tools to validate and/or format these JSON policies. gist.github.com/nhandler/97f55… is my attempt at a solution to this problem. All of your policies get defined as standalone JSON files within a templates/ directory. This makes it easy to copy from other tools (or even web consoles) and validate/format the contents.