I am looking at using Amazon cloud services (EC2, S3 etc) for hosting. I’ve been looking at the JSON metadata that can be specified to configure various instances and the complexity has me concerned. Is there a dsl that will generate valid JSON metadata and more importantly validate the entries?
Share
Unfortunately, I drew a blank after searching for this recently. I’m using Amazon Web Services CloudFormation (is that the JSON metadata you’re talking about?).
There are a couple of issues with CloudFormation JSON files:
So I’ve been using straight-up API calls in Scala using the Java API. It’s actually really nice.
The Java API has a flavor of “setters” starting with
withthat returnthisso they can be chained. In Scala, you can use these to act like a poor-man’s DSL. So you can do things likeOther things are easy to do in Scala with the Java API. For example, group all your Subnets by VPC in a Map, simply do