`juju export-bundle` with option for Terraform

Bug #2072152 reported by Haw Loeung
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Wishlist
Unassigned

Bug Description

Hi,

Juju currently supports exporting bundles with `juju export-bundle`. Is it possible to expand that to allow exporting a Juju model into a Terraform plan (HCL)?

Example:

| terraform {
| required_providers {
| juju = {
| version = "~> 0.12.0"
| source = "juju/juju"
| }
| }
| }
|
| provider "juju" {}
|
| locals {
| juju_model_name = "prod-mymodel"
| }
|
| resource "juju_application" "my_application" {
| name = "my-application"
|
| model = local.juju_model_name
|
| charm {
| name = "my-application-charm"
| revision = 9
| channel = "latest/stable"
| base = "ubuntu@22.04"
| }
|
| constraints = "arch=amd64 cores=4 mem=8192M root-disk=51200M root-disk-source=volume"
| config = {
| my-config1 = "value1"
| my-config2 = "value2"
| }
| expose {}
|
| units = 2
| }
|
| resource "juju_integration" "myapp_to_percona" {
| model = juju_model.development.name
|
| application {
| name = juju_application.my-application.name
| endpoint = "db"
| }
|
| application {
| name = juju_application.percona-cluster.name
| endpoint = "server"
| }
| }

Haw Loeung (hloeung)
Changed in juju:
importance: Undecided → Wishlist
Changed in juju:
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.