6 releases

0.0.6 Nov 12, 2020
0.0.4 Dec 17, 2019
0.0.3 Nov 7, 2019
0.0.2 Sep 9, 2019

#287 in Template engine

Apache-2.0 OR MIT

38KB
926 lines

AWS CloudFormation Template Generator

Work in Progress

The purpose is to programmatically generate templates for AWS CloudFormation

Here is a quick example of how it should work when operational (i.e. version >= 0.1.0)

use cumulus::ec2;
use cumulus::Template;

fn main() {
    let proxy1 = ec2::Instance::new("proxy1").instance_type("s2.micro");
    let proxy2 = ec2::Instance::new("proxy2").instance_type("s2.micro");

    let template = Template::new()
        .description("Proxy Farm")
        .resource(proxy1)
        .resource(proxy2)
        .json_pretty();

    println!("{}", template);
}

Dependencies

~1.6–2.8MB
~56K SLoC