cirrus icon indicating copy to clipboard operation
cirrus copied to clipboard

YAML format to replace verbose JSON templates

Open yongfei25 opened this issue 8 years ago • 4 comments

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>>

yongfei25 avatar Jul 19 '16 04:07 yongfei25

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.

simonbuchan avatar Feb 02 '17 03:02 simonbuchan

I've been using https://github.com/drrb/cfoo in our CF build process for this, but being able to bypass this would be 👍

joffotron avatar Feb 02 '17 05:02 joffotron

I don't see why we can't support YAML natively

SomeoneWeird avatar Feb 02 '17 05:02 SomeoneWeird

Yeah, that was my point. It'd be nice to not have to use cfoo ;)

joffotron avatar Feb 02 '17 06:02 joffotron