#aws #cloudformation

cumulus

AWS Cloud Formation Template Generator

3 releases

✓ Uses Rust 2018 edition

new 0.0.2 Sep 9, 2019
0.0.1 Sep 9, 2019
0.0.0 Sep 4, 2019

#177 in #aws

Apache-2.0 OR MIT

22KB
497 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.6–2.2MB
~46K SLoC