Nathan Handler Profile picture
Software Engineer and Open Source Evangelist @OrchidProtocol, @Ubuntu/@Debian Developer, @freenodestaff member. Former Site Reliability Engineer @Yelp
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.