#aws #cloudformation

cumulus

AWS CloudFormation Template Generator

4 releases

✓ Uses Rust 2018 edition

0.0.3 Nov 7, 2019
0.0.2 Sep 9, 2019
0.0.1 Sep 9, 2019
0.0.0 Sep 4, 2019

#177 in #aws

46 downloads per month

Apache-2.0 OR MIT

29KB
743 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().instance_type("s2.micro");
    let proxy2 = proxy1.clone();

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

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

Dependencies

~1–1.6MB
~37K SLoC