CUE

CUE lang and HCL map key validation

Context I’m just starting to play with CUE lang to assess the benefit it can bring to the automation I’m doing. This is a short memo to remember how to do dictionary key validation with CUE lang and a little bit more. My starting point was to do naming convention validation with CUE lang. I have the following data model in my Terraform files. subnets = { "sub-primary" = { "subnet" = ["10.