cirrus
cirrus copied to clipboard
YAML format to replace verbose JSON templates
Just thinking if we can implement some YAML to JSON template converter. YAML format is simpler and supports comments in the template.
description: Create postgres database
parameters:
- RDSInstanceClass:
- description: DB instance type
type: string
resources:
# And you can drop comments here
- DatastoreDBSubnetGroup:
- Type: AWS::RDS::DBInstance
DeletionPolicy: Retain
Properties:
- DBInstanceClass: <<RDSInstanceClass>>
Note CF now supports YAML natively. Since it looks like you munge the input that doesn't really help, but it does mean a higher expectation that it will work.
I've been using https://github.com/drrb/cfoo in our CF build process for this, but being able to bypass this would be 👍
I don't see why we can't support YAML natively
Yeah, that was my point. It'd be nice to not have to use cfoo ;)