Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 612 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 612 Bytes

Simple code to convert juju bundles in to terraform files.

Export the bundle:

juju export-bundle > bundle.yaml

Run it simply with:

python3 convert.py bundle.yaml juju_model_name > file.tf

You will need to fix the juju model resource, by adding a credential and configuring a juju_credential resource with your provider and auth mechanism.

Test for any wrong-conversions with:

terraform validate

It is possible that multi-line strings in juju config options are malformed and need to be manually fixed.

== Known Issues ==

Cross-model relations and offers are not supported yet.