Maven plugin that allows automated generation of AWS cloudformation templates via Jython/Boto/Troposphere
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

This is a maven plugin that can help automate the creation of AWS CloudFormation templates through the use of Jython and the Boto and Troposphere Python libraries.

Usage is pretty easy

Include the following in your pom.xml


You also need to include a dependency in your project to the Jython artifact


Note that version 2.7-b1 or newer is required.

This plugin will operate during the generate-sources phase of the Maven lifecycle. It will scan your source directory (default: src/main/tropopsophere) for files with a '.tr' extension. It will process each file via Jython, with both Boto and Troposphere modules loaded by default (you can add additional modules if you need them)

The 'stdout' of each Python script (.tr file) will be captured as a cloud-template in the output directory (default: src/cloud-templates) with the same name.
The output directory is added to the list of source directories for the project.

For some examples, checkout the 'src/it' directory

NOTE: As of release 2.3.0, the maven-troposphere-plugin will follow the troposphere release numbering (version 2.3.0 of plugin includes version 2.3.0 of troposphere, etc.)